【Kubernetes】Kubernetes删除namespace后持续terminating状态
删除isti和foo的配置文件之后,namespace持续terminating状态,此时也无法再创建istio-system的namespace
namespace "istio-system" edited
root@ht:~/istio-0.8./install/kubernetes# kubectl get ns
NAME STATUS AGE
choerodon-devops-prod Active 21d
default Active 30d
foo Terminating 11d
istio-system Terminating 19d
jack-demo Active 29d
kube-public Active 30d
kube-system Active 30d
sock-shop Active 22d
此时再删除istio-system也无法删除
root@ht:~/istio-0.8.0/install/kubernetes# kubectl delete ns istio-system
Error from server (Conflict): Operation cannot be fulfilled on namespaces "istio-system": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system.
好像是陷入死循环一样
此时查看pod,发现本应该已经被删除的istio系列pod依旧还出现在系统中,并且处于unknowed状态,失联了?
root@ht:~/istio-0.8./install/kubernetes# kubectl get pod -n istio-system
NAME READY STATUS RESTARTS AGE
istio-ingressgateway-6bc7c7c4bc-zwqmn / Unknown 19d
istio-statsd-prom-bridge-6dbb7dcc7f-44gzv / Unknown 19d
istio-telemetry-54b5bf4847-rn9qj / Unknown 19d
root@ht:~/istio-0.8./install/kubernetes# kubectl get pods -n foo
NAME READY STATUS RESTARTS AGE
httpbin-68fbcdcfc7-xbf2c / Unknown 11d
推测问题可能出在这
此时用kubetl delete -f 普通删除没有响应,故接下来采用强制删除
root@ht:~/istio-0.8./install/kubernetes# kubectl delete pod -n istio-system istio-ingressgateway-6bc7c7c4bc-zwqmn --grace-period= --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "istio-ingressgateway-6bc7c7c4bc-zwqmn" deleted
root@ht:~/istio-0.8./install/kubernetes# kubectl delete pod -n istio-system istio-statsd-prom-bridge-6dbb7dcc7f-44gzv --grace-period= --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "istio-statsd-prom-bridge-6dbb7dcc7f-44gzv" deleted
root@ht:~/istio-0.8./install/kubernetes# kubectl delete pod -n istio-system istio-telemetry-54b5bf4847-rn9qj --grace-period= --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "istio-telemetry-54b5bf4847-rn9qj" deleted
root@ht:~/istio-0.8./install/kubernetes# kubectl delete pod -n foo httpbin-68fbcdcfc7-xbf2c --grace-period= --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "httpbin-68fbcdcfc7-xbf2c" deleted
一开始还是出现terminating的状态,等待一会后就会发现系统恢复正常
root@ht:/etc/kubernetes# kubectl get ns -o wide
NAME STATUS AGE
choerodon-devops-prod Active 21d
default Active 30d
jack-demo Active 29d
kube-public Active 30d
kube-system Active 30d
sock-shop Active 22d
【Kubernetes】Kubernetes删除namespace后持续terminating状态的更多相关文章
- 聊聊 Kubernetes Pod or Namespace 卡在 Terminating 状态的场景
这个话题,想必玩过kubernetes的同学当不陌生,我会分Pod和Namespace分别来谈. 开门见山,为什么Pod会卡在Terminationg状态? 一句话,本质是API Server虽然标记 ...
- k8s被删除的pod一直Terminating状态
微服务项目,部分服务无法delete,一直处于Terminating状态 kubectl get po -n gift 强制删除product:kubectl delete -n gift po/pr ...
- Kubernetes 清除持续 Terminating 状态的Pods
强制删除所有Pods -- 谨慎使用 kubectl delete pods --all --grace-period=0 --force
- azure删除ns时一直处于terminating状态
写个脚本 #!/bin/bash NAMESPACE=corekubectl proxy &kubectl get namespace $NAMESPACE -o json |jq '.spe ...
- Kubernetes删除一直处于Terminating状态的namespace
问题现象: 删除namespace,一直处于Terminating,并且用--force --grace-period=0 也删除不了 develop Terminating 4d9h Error f ...
- kubernetes删除pod一直处于terminating状态的解决方法
kubernetes删除pod一直处理 Terminating状态 # kubectl get po -n mon NAME READY STATUS RESTARTS AGE alertmanage ...
- kubernetes删除pod,pod一直处于Terminating状态
删除pod,pod一直处于Terminating状态 [root@yxz-cluster01 deploy_yaml]# kubectl get pod -n yunanbao NAME READY ...
- k8s删除namespace一直处于terminating状态
k8s删除namespace一直处于terminating状态 当遇到删除ns是一直处于terminating情况可以用调k8s api进行删除. 1.创建api proxy. [root@node1 ...
- kubernetes如何强制删除namespace
K8S如何强制删除namespace 先运行kubectl get namespace ingress-nginx -o json > nginx.json,拿到当前namespace描述,然后 ...
随机推荐
- 如何在Windows2008 Server服务器上开启Ping或者禁PING
方法1:命令行模式 进入服务器后 点击 开始--运行 输入命令: netsh firewall set icmpsetting 8 这样就可以在外部ping到服务器了 非常简单实用! 同样道理,如果想 ...
- ping localhost 返回 ::1的导致不能打开http://localhost的原因及解决
虽然可以在浏览器中正常访问http://localhost但用file,file_get_contents等函数打开http://localhost异常.用127.0.0.1也可以打开,本地hosts ...
- js操作css样式、js的兼容问题
一.js操作css样式 div . style . width="200px" 在div标签内我们添加了一个style属性,并设定width值.这种写法会给标签带来大量的style ...
- QQ面板拖拽(慕课网DOM事件探秘)(下)
2.鼠标事件坐标获取 function fnDown(event) { var event = event || window.event; var oDrag = document.getEleme ...
- [Tunny]Git常用命令与入门
[黄映焜/Tunny,20140709] Git 仓库就是那个.git 目录,其中存放的是我们所提交的文档索引内容,Git 可基于文档索引内容对其所管理的文档进行内容追踪,从而实现文档的版本控制..g ...
- laravel学习笔记(二)
路由 HTTP方法:支持http1.1中所有类型传参方式,get,post,put,delete,options,patch Route::get($url,$callback); 路由参数: Rou ...
- PMP项目管理学习笔记(7)——整合管理之指导和管理项目执行过程
过程剖析 输入:组织过程资产.企业环境要素.项目管理计划.批准的变更请求 工具:专家判断.项目管理信息系统 输出:工作绩效信息.可交付成果.变更请求.项目文档和计划更新 指导和管理项目执行过程包括: ...
- CentOS 7下安装配置proftpd搭建ftp服务器
proftpd全称:Professional FTP daemon,是针对Wu-FTP的弱项而开发的,除了改进的安全性,还具备许多Wu-FTP没有的特点,能以Stand-alone.xinetd模式运 ...
- 一条HTTP的生命之旅(高频面试问题)
当你在浏览器地址栏输入一个URL后回车,将会发生的事情? 原文:http://igoro.com/archive/what-really-happens-when-you-navigate-to-a- ...
- ubuntu 18.04 start myproject
#!/bin/bash now=$(date +%Y%m%d) cmd='/home/hu/go/src/github.com/coredns/coredns/coreserver -conf /ho ...