zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    linux系统缓存机制
    信号“未决”与“阻塞”
    异步I/O
    Unix下五种IO模型
    【设计模式
    【设计模式
    【设计模式
    【设计模式
    【设计模式
    【设计模式
  • 原文地址:https://www.cnblogs.com/linyouyi/p/11173590.html
Copyright © 2011-2022 走看看