吊舱处于终止状态 [英] Pods stuck in Terminating status

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

问题描述

我尝试删除具有12个容器的ReplicationController,我可以看到某些容器卡在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>

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

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