OpenShift Pod gets stuck in pending state

11/23/2016

MySQL pod in OpenShift gets stuck after new deployment and shows the message "The pod has been stuck in the pending state for more than five minutes." What can I do to solve this? I tried to scale the current deployment pod to 0 and scale the previous deployment pod to 1. But it also got stuck which was working earlier.

-- Jyot Prakash Verma
kubernetes
mysql
openshift

1 Answer

11/26/2016

If pod stuck in pending state we can remove it by executing

oc delete pod/<name of pod> --grace-period=0

This command would remove pods immediately, but use it with caution because it may leave some process pid files on persistent volumes.

-- wtrocki
Source: StackOverflow