doc-exports/docs/cce/umn/cce_faq_00199.html
Dong, Qiu Jian b05d81fd8b CCE UMN for 1.23 reuploaded -20221103
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2022-11-10 19:50:29 +00:00

1.7 KiB

What Should I Do If a Pod Is in the Evicted State?

Problem

Workload pods in the cluster fail and are being redeployed constantly.

After the following command is run, the command output shows that many pods are in the evicted state.

kubectl get pods

Possible Cause

When a node is abnormal, Kubernetes evicts pods on the node. This problem is often caused by insufficient resources.

Solution

Check resource usage and locate the fault.

Run the following command to delete the evicted pods:

kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod