删除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

最新文章

  1. vim修改文字编码
  2. JS 面向对象随笔
  3. hdoj 2039 三角形
  4. paip.php 与js 的相似性以及为什么它们这么烂还很流行。。
  5. [STL] lower_bound和upper_bound
  6. 菜鸟学Linux命令:find命令 查找文件
  7. MyEclipse Blue Edition 6.5 注册码生成程序
  8. 省常中模拟 Test4
  9. POJ 1502 MPI Maelstrom (Dijkstra)
  10. ArrayList的实现原理--转
  11. Nginx【第一篇】安装
  12. JavaScript高级程序设计50.pdf
  13. Android如何监听蓝牙耳机的按键事件
  14. nginx源码学习资源
  15. Docker基础入门及示例
  16. linux socket 编程(C语言)[转]
  17. flask请求上下文
  18. python2.7安装beautifulsoup包
  19. SQL SERVER 2014--学习笔记1
  20. C# winform中listview排序

热门文章

  1. 143 Reorder List 重排链表
  2. C. Memory and De-Evolution 逆向思维
  3. Redis学习笔记1-安装配置
  4. JSP 错误处理方法
  5. 汇编3栈帧,参数传递,串操作,混合汇编,x64,asm文件
  6. $.noconflict() 有什么用处
  7. html归纳
  8. uva12099 The Bookcase
  9. 【lua实战摸索】在b.lua调用a.lua的函数
  10. Spring-1-IOC