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?露
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 --forceTherefore, 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 实验室设备网 版权所有 |