What Should I Do If Pods in the Terminating State Cannot Be Deleted?

您所在的位置:网站首页 pod状态terminating What Should I Do If Pods in the Terminating State Cannot Be Deleted?

What Should I Do If Pods in the Terminating State Cannot Be Deleted?

#What Should I Do If Pods in the Terminating State Cannot Be Deleted? | 来源: 网络整理| 查看: 265

What Should I Do If Pods in the Terminating State Cannot Be Deleted?露 Symptom露

When a node is in the Unavailable state, CCE migrates container pods on the node and sets the pods running on the node to the Terminating state.

After the node is restored, the pods in the Terminating state are automatically deleted.

Some pods are in the Terminating state occasionally.

The pods cannot be deleted by running the kubectl delete pods command.

kubectl delete pods httpd-app-6df58645c6-cxgcm Solution露

You can run the following command to forcibly delete the pods created in any ways:

kubectl delete pods --grace-period=0 --force

Therefore, you can run the following command to delete the pod httpd-app-6df58645c6-cxgcm:

kubectl delete pods httpd-app-6df58645c6-cxgcm --grace-period=0 --force


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3