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

 

posted @ 2019-07-11 23:57  linyouyi  阅读(3199)  评论(0编辑  收藏  举报