How to delete a terminating managed master pod

Issue

  • Managed master pod stuck as Terminating after getting deleted
  • Unable to delete a terminating managed master pod

Environment

Description

Running kubectl delete pod mm1-0 command was not throwing any error, but did not delete the managed master pod. The pod is stuck as Terminating for a long time after getting deleted. The list of pods looks similar to the one below

NAME                       READY    STATUS             RESTARTS   AGE
cjoc-0                     1/1      Running            2          5d8h
default-java-29tkm         0/1      Completed          0          10d
mm1-0                      0/1      Terminating        5          2d8h

Resolution

Force delete a pod, using --force option to delete a terminating pod. Run

kubectl delete pod mm1-0 --grace-period=0 --force

where mm1-0 is the name of the terminating managed master pod. The same approach applies on an Operations Center terminating pod, often named as cjoc-0.

Have more questions?

0 Comments

Please sign in to leave a comment.