Kubernetes删除资源后持续terminating状态

Error from server (Forbidden): error when creating "/root/istio.yaml": configmaps "istio-galley-configuration" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": configmaps "prometheus" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": configmaps "istio-security-custom-resources" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": configmaps "istio" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": configmaps "istio-sidecar-injector" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-galley-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-egressgateway-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-ingressgateway-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-mixer-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-pilot-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "prometheus" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-cleanup-secrets-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": jobs.batch "istio-cleanup-secrets-master-latest-daily" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-security-post-install-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": jobs.batch "istio-security-post-install-master-latest-daily" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-citadel-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": serviceaccounts "istio-sidecar-injector-service-account" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-galley" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-egressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-ingressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-policy" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-telemetry" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-pilot" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "prometheus" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-citadel" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": services "istio-sidecar-injector" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-galley" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-egressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-ingressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-policy" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-telemetry" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-pilot" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "prometheus" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-citadel" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": deployments.extensions "istio-sidecar-injector" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": horizontalpodautoscalers.autoscaling "istio-egressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": horizontalpodautoscalers.autoscaling "istio-ingressgateway" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": horizontalpodautoscalers.autoscaling "istio-policy" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": horizontalpodautoscalers.autoscaling "istio-telemetry" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": horizontalpodautoscalers.autoscaling "istio-pilot" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": attributemanifests.config.istio.io "istioproxy" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": attributemanifests.config.istio.io "kubernetes" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": handlers.config.istio.io "stdio" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": logentries.config.istio.io "accesslog" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": logentries.config.istio.io "tcpaccesslog" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "stdio" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "stdiotcp" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "requestcount" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "requestduration" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "requestsize" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "responsesize" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "tcpbytesent" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "tcpbytereceived" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "tcpconnectionsopened" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": metrics.config.istio.io "tcpconnectionsclosed" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": handlers.config.istio.io "prometheus" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "promhttp" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "promtcp" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "promtcpconnectionopen" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "promtcpconnectionclosed" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": handlers.config.istio.io "kubernetesenv" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "kubeattrgenrulerule" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": rules.config.istio.io "tcpkubeattrgenrulerule" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": kuberneteses.config.istio.io "attributes" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": destinationrules.networking.istio.io "istio-policy" is forbidden: unable to create new content in namespace istio-system because it is being terminated
Error from server (Forbidden): error when creating "/root/istio.yaml": destinationrules.networking.istio.io "istio-telemetry" is forbidden: unable to create new content in namespace istio-system because it is being terminated
[[email protected] ~]# kubectl get po -n istio-system
NAME READY STATUS RESTARTS AGE
istio-policy-6ccddfd88c-b9jrm 1/2 Terminating 9 4h47m
istio-policy-6ccddfd88c-njnq5 1/2 Terminating 9 4h47m
istio-policy-6ccddfd88c-pwr97 2/2 Terminating 20 5h18m
istio-telemetry-8bf65698d-cstxv 1/2 Terminating 15 5h3m
istio-telemetry-8bf65698d-d5v6n 1/2 Terminating 7 4h44m
istio-telemetry-8bf65698d-nj474 1/2 Terminating 17 5h12m
[[email protected] ~]# kubectl delete po -n istio-system istio-policy-6ccddfd88c-b9jrm --grace-period= 0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-policy-6ccddfd88c-b9jrm" force deleted
[[email protected] ~]# kubectl delete po -n istio-system istio-policy-6ccddfd88c-njnq5 --grace-period= 0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-policy-6ccddfd88c-njnq5" force deleted
[[email protected] ~]# kubectl delete po -n istio-system istio-policy-6ccddfd88c-pwr97 --grace-period= 0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-policy-6ccddfd88c-pwr97" force deleted
[[email protected] ~]# kubectl delete po -n istio-system istio-telemetry-8bf65698d-cstxv --grace-perio d=0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-telemetry-8bf65698d-cstxv" force deleted
[[email protected] ~]# kubectl delete po -n istio-system istio-telemetry-8bf65698d-d5v6n --grace-perio d=0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-telemetry-8bf65698d-d5v6n" force deleted
[[email protected] ~]# kubectl delete po -n istio-system istio-telemetry-8bf65698d-nj474 --grace-perio d=0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been ter minated. The resource may continue to run on the cluster indefinitely.
pod "istio-telemetry-8bf65698d-nj474" force deleted

原文地址:http://blog.51cto.com/lizhiyuan/2346971

时间: 2024-08-01 08:18:27

Kubernetes删除资源后持续terminating状态的相关文章

Kubernetes删除namespace后持续terminating状态

删除isti和foo的配置文件之后,namespace持续terminating状态,此时也无法再创建istio-system的namespace namespace "istio-system" edited [email protected]:~/istio-0.8.0/install/kubernetes# kubectl get ns NAME STATUS AGE choerodon-devops-prod Active 21d default Active 30d foo

Kubernetes强制删除一直处于Terminating状态的pod。

在dashboard界面删除容器,发现无法删除.使用命令查看发现该pod一直处于terminating的状态Kubernetes强制删除一直处于Terminating状态的pod. 1.使用命令获取pod的名字kubectl get po -n NAMESPACE |grep Terminating2.使用kubectl中的强制删除命令kubectl delete pod podName -n NAMESPACE --force --grace-period=0 原文地址:https://blo

k8s 删除几种Terminating 状态的pod

删除 查看Terminating 状态 [[email protected] dashboard]# kubectl get ns|grep kubernetes-dashboard kubernetes-dashboard Terminating 26h kubernetes-dashboard-head Terminating 5h57m [[email protected] dashboard]# kubectl get ns kubernetes-dashboard -o yamlapi

k8s删除pod一直处于terminating状态

用的nfs挂载卷,当删除pv后再删除pod时,pod一直处于terminating状态. 如下图: 解决方法: 可使用kubectl中的强制删除命令 # 删除POD kubectl delete pod [pod name] --force --grace-period=0 -n [namespace] # 删除NAMESPACE kubectl delete namespace NAMESPACENAME --force --grace-period=0 若以上方法无法删除,可使用第二种方法,

Kubernetes PV在Retain策略Released状态下重新分配到PVC恢复数据

Kubernetes PV在Retain策略Released状态下重新分配到PVC恢复数据 [TOC] 1. 实验目的和环境说明 原由:在使用helm update stable/sonatype-nexus从1.6版本更新到1.13版本后,出现PVC删除,重新创建PVC的情况,好在原来PV为Retain.故研究下Retain的PV怎么恢复数据. 实验目的:PVC删除后,PV因Retain策略,状态为Released,将PV内数据恢复成PVC,挂载到POD内,达到数据恢复. 环境说明: Kube

K8S-删除Terminating状态的namespace

kubernetes 删除Terminating状态的命名空间 1.检查该namespace下是否还有资源: kubectl get all --namespace=cattle-system 2.删除资源: kubectl delete pods <pod> --grace-period=0 --force 3.编辑namespace: kubectl edit ns cattle-system 注释掉finalizers部分,保存即会删除该ns 4.查看查看已被删除: kubectl ge

使用SVN同步资源后图标样式的详细解读

项目视图   The Package Explorer view - 已忽略版本控制的文件.可以通过Window → Preferences → Team → Ignored Resources.来忽略文件.A file ignored by version control. You can control what resources will be ignored by going to Window → Preferences → Team → Ignored Resources.  - 

RDS for MySQL 删除数据后空间没有减少处理方法

公司的程序和数据库部署在阿里云上,数据库使用的是阿里云的RDS,这天,经理在开发群中发了一个信息: 您的RDS实例rm********0oq的磁盘在过去一周平均使用率已超过80.0%,建议您对实例规格进行升级,以免磁盘资源不足,影响业务运行.详情请您查看您阿里云注册邮箱中的邮件. 1.首先我在Navicat上远程delete阿里云RDS数据表中的数据, 找到对应的表,然后delete 删除部分数据,单个表中的数据达五千万条,所以操作起来很笨重.(懊恼啊,为什么当初没有做分表操作..) 按照产品经

Kubernetes之资源清单定义

目录 Kubernetes之资源清单定义 常用资源 利用配置清单定义自主式Pod资源 Kubernetes之资源清单定义 常用资源 工作负载型 Pod,ReplicaSet,StatefulSet,DaemonSet,Job,Cronjob 服务发现及均衡 Sevice,Ingress,... 配置与存储 Volume,CSI,ConfigMap,Secret,DownwardAPI 集群级资源 Namespace,Node,Role,ClusterRole,RoleBinding,Cluste