Delete Pod
About this task
Deleting a pod is a method that can be used to restart the pod. When a pod is deleted or dies, kubernetes will force the pod to be restarted.
Procedure
-
Delete the pod of interest.
kubectl delete pod onedb-server-0
-
Monitor the pod that was deleted, as it is restarted. After performing the kubectl
delete pod the pod will terminate. As it restarts, it will go back into the
initialization and eventually a Running state.
onedb-server-0 0/1 Terminating 0 42h onedb-server-0 0/1 Init:0/1 0 1s onedb-server-0 1/1 Running 0 43s