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
  • 相关阅读:
    《世界是数字的》
    IT小小鸟读书笔记
    Codeforces Round #665 Div.2 (CF1401)
    Codeforces Round #662 Div.2 (CF1392)
    std::array的效率问题
    CSS布局学习总结
    TCP中三次握手与四次挥手
    初见Vuex
    初见webpack
    CentOS7使用yum简便安装mysql5.7
  • 原文地址:https://www.cnblogs.com/linyouyi/p/11173590.html
Copyright © 2011-2022 走看看