kubernetes 强制删除istio-system空间,强制删除pod


加上这个选项 --grace-period=0 --force--grace-period=0 --force

先删除deployment,pod,svc再删除namespace

> kubectl get pod -n istio-system
NAME                                     READY     STATUS        RESTARTS   AGE
istio-galley-75679b695b-5p8vn            0/1       Terminating   0          1h
istio-sidecar-injector-c8c4c568b-x5m9j   0/1       Terminating   0          1h
> kubectl delete pods istio-galley-75679b695b-5p8vn -n istio-system --grace-period=0 --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-galley-75679b695b-5p8vn" deleted
>
> kubectl get pod -n istio-system
NAME                                     READY     STATUS        RESTARTS   AGE
istio-sidecar-injector-c8c4c568b-x5m9j   0/1       Terminating   0          1h
> kubectl delete pods istio-sidecar-injector-c8c4c568b-x5m9j -n istio-system --grace-period=0 --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-sidecar-injector-c8c4c568b-x5m9j" deleted
> kubectl get pod -n istio-system
No resources found.
> kubectl delete ns istio-system --grace-period=0 --force

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM