Pod 卡在终止状态 [英] Pods stuck in Terminating status

查看:23
本文介绍了Pod 卡在终止状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试删除带有 12 个 Pod 的 ReplicationController,我可以看到一些 Pod 卡在 Terminating 状态.

I tried to delete a ReplicationController with 12 pods and I could see that some of the pods are stuck in Terminating status.

我的 Kubernetes 集群由一个控制平面节点和三个安装在 Ubuntu 虚拟机上的工作节点组成.

My Kubernetes cluster consists of one control plane node and three worker nodes installed on Ubuntu virtual machines.

这个问题的原因可能是什么?

What could be the reason for this issue?

NAME        READY     STATUS        RESTARTS   AGE
pod-186o2   1/1       Terminating   0          2h
pod-4b6qc   1/1       Terminating   0          2h
pod-8xl86   1/1       Terminating   0          1h
pod-d6htc   1/1       Terminating   0          1h
pod-vlzov   1/1       Terminating   0          1h

推荐答案

可以使用以下命令强行删除POD.

You can use following command to delete the POD forcefully.

kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>

这篇关于Pod 卡在终止状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆