zoukankan      html  css  js  c++  java
  • 解决k8s namespace terminating无法删除的问题

    删除报错
    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.
    Error from server (Conflict): Operation cannot be fulfilled on namespaces "etcd": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system

    查看namespace,状态为terminating

     解决方式:

    1.在master节点上启动proxy

    kubectl proxy --port=8009

    2.执行删除命令

    ns=etcd

    curl -X PUT     --data-binary @<(kubectl get namespace $ns -o json | sed 's/"kubernetes"//g')     -H "Content-Type: application/json"     http://127.0.0.1:8009/api/v1/namespaces/$ns/finalize

     删除成功,再查看namespace 

  • 相关阅读:
    ACM-ICPC ShangHai 2014
    DEBUG感想
    WireShark 使用日记
    C++ 备忘录
    BZOJ 1022 [SHOI2008]小约翰的游戏John
    高斯消元
    BZOJ3236 [Ahoi2013]作业
    BZOJ P3293&&P1045
    ZKW费用流的理解
    BZOJ 几道水题 2014-4-22
  • 原文地址:https://www.cnblogs.com/lidezhen/p/13190559.html
Copyright © 2011-2022 走看看