【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描述,然后 ...
随机推荐
- mysql replication错误常见处理
大部分的错误,都是日志错误 日志本身的错误 主日志和中继日志都可能出错,可以使用mysqlbinlog来读一下mysqlbinlog mysql-bin.000007>/dev/null ##只 ...
- 解决vue跨域问题
package com.qmtt.config; import java.io.IOException; import javax.servlet.Filter; import javax.servl ...
- 【转】Java集合:HashMap源码剖析
Java集合:HashMap源码剖析 一.HashMap概述二.HashMap的数据结构三.HashMap源码分析 1.关键属性 2.构造方法 3.存储数据 4.调 ...
- gp服务输出的结果文件输出到绝对路径
gp服务跟本地用arcmap执行gp有个不同,就是输出的文件一般只能输出到arcgis server默认的output目录里面(arcgis server有此限制,无论怎么配还是写到output目录里 ...
- express搭建平台
1.nodeJs的安装(npm的安装) nodejs官方下载地址:https://nodejs.org 2.express的安装( $ npm install -g express #全局安装expr ...
- Performance engineering introduction
1.Performance Software performance is one of software quality attributes, it equal to efficiency w ...
- SVN与TFS自动同步脚本(很实用)
一直都在园子里看文章,因为各种原因懒得写文章.最近稍得空闲,把这几天的工作成果分享一下. 因为工作需要,开发人员使用Qt进行系统移动端的开发,Qt的版本控制却不提供连接TFS的设置,只有使用svn.没 ...
- Redis学习笔记(三)列表进阶
RPOPLPUSH source destination(弹出source列表最右端的元素,并推入destination的最左端,同时返回这个元素) BRPOPLPUSH source destina ...
- help命令
help——获得Shell内置命令的帮助信息 命令所在路径:Shell内置命令 示例1: # help cd 使用which或者whereis查找不到路径的命令一般是Shell内置命令,cd就是一个S ...
- 如何通过Java代码判断当前的环境是否支持JRE 9
JDK9已经出来有一段时间了,因此很多流行的Java应用纷纷增添了对JDK9乃至JDK10的支持,比如Tomcat. 我们通过这个链接下载最新的Tomcat源文件包,总共7MB: https://to ...