删除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状态的更多相关文章

  1. 聊聊 Kubernetes Pod or Namespace 卡在 Terminating 状态的场景

    这个话题,想必玩过kubernetes的同学当不陌生,我会分Pod和Namespace分别来谈. 开门见山,为什么Pod会卡在Terminationg状态? 一句话,本质是API Server虽然标记 ...

  2. k8s被删除的pod一直Terminating状态

    微服务项目,部分服务无法delete,一直处于Terminating状态 kubectl get po -n gift 强制删除product:kubectl delete -n gift po/pr ...

  3. Kubernetes 清除持续 Terminating 状态的Pods

    强制删除所有Pods -- 谨慎使用 kubectl delete pods --all --grace-period=0 --force

  4. azure删除ns时一直处于terminating状态

    写个脚本 #!/bin/bash NAMESPACE=corekubectl proxy &kubectl get namespace $NAMESPACE -o json |jq '.spe ...

  5. Kubernetes删除一直处于Terminating状态的namespace

    问题现象: 删除namespace,一直处于Terminating,并且用--force --grace-period=0 也删除不了 develop Terminating 4d9h Error f ...

  6. kubernetes删除pod一直处于terminating状态的解决方法

    kubernetes删除pod一直处理 Terminating状态 # kubectl get po -n mon NAME READY STATUS RESTARTS AGE alertmanage ...

  7. kubernetes删除pod,pod一直处于Terminating状态

    删除pod,pod一直处于Terminating状态 [root@yxz-cluster01 deploy_yaml]# kubectl get pod -n yunanbao NAME READY ...

  8. k8s删除namespace一直处于terminating状态

    k8s删除namespace一直处于terminating状态 当遇到删除ns是一直处于terminating情况可以用调k8s api进行删除. 1.创建api proxy. [root@node1 ...

  9. kubernetes如何强制删除namespace

    K8S如何强制删除namespace 先运行kubectl get namespace ingress-nginx -o json > nginx.json,拿到当前namespace描述,然后 ...

随机推荐

  1. Pycharm中pygame报错

    什么鬼???我记得刚安装过啊-.. 并且本机只有一个python3.5,环境变量之前都是正常,我去折腾了大半天,原来在pycharm中安装模块是在如下所示图中 以后如果没有安装模块,都可以在这里进行安 ...

  2. [转]深入浅出WPF(7)——数据的绿色通道,Binding

    本文转自:http://liutiemeng.blog.51cto.com/120361/95273 小序: 怎么直接从2蹦到7啦?!啊哦,实在是不好意思,最近实在是太忙了,忙的原因也非常简单——自己 ...

  3. IO 优化

    转自 BlackJack_ #define fastcall __attribute__((optimize("-O3"))) #define IL __inline__ __at ...

  4. android xml中使用include标签

    在一个项目中,我们可能会在xml中局部用到相同的布局,如果每次都在xml中重写这些布局,代码显得很冗余.重复的复制黏贴也很烦恼,所以,我们把这些相同的局部布局写成一个单独的xml模块,需要用到这些布局 ...

  5. php中的define()函数

    <?php define("PI",3.1415926); //定义常量 $r=12;//定义圆半径 echo "半径为12的单位的圆的面积".PI*($ ...

  6. sprintf使用时需要注意的问题

  7. codevs 1979 第K个数

     时间限制: 1 s  空间限制: 1000 KB  题目等级 : 黄金 Gold 题目描述 Description 给定一个长度为N(0<n<=10000)的序列,保证每一个序列中的数字 ...

  8. Elasticsearch学习(二)————搜索

    Elasticsearch1.query string search1.1.搜索全部// 1. GET http://ip:9200/test/test/_search 结果: { "too ...

  9. liunx+mysql数据库管理

    源码安装 查询是否安装:  rpm -aq |grep mysql 1.下载yum 源            wget 'https://dev.mysql.com/get/mysql57-commu ...

  10. JetBrains系列产品激活

    注册时,在打开的License Activation窗口中选择“License server”,在输入框输入下面的网址: http://idea.codebeta.cn https://s.tuzhi ...