删除命名空间
<p class="shortdesc">由用户创建的命名空间支持删除,本文主要介绍如何删除命名空间。</p>
<section class="section prereq" id="Delete_namespace__prereq_gpx_32c_gsb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">您已成功创建命名空间,可参考<a class="xref" href="/ssr/help/management/PKS/Serverless.user_guide.namespace.create_namespace" target="_blank" rel="external noopener">创建命名空间</a>。</p>
</section>
<section class="section attention" id="Delete_namespace__attention_xbv_h2w_n5b"><div class="tasklabel"><h2 class="doc-tairway">注意事项</h2></div>
<ul class="ul" id="Delete_namespace__ul_vzg_115_rvb">
<li class="li">系统命名空间,如kube-system、kube-public、kube-node-lease,不支持删除操作。</li>
<li class="li">default命名空间为k8s创建的默认命名空间,不支持删除。</li>
<li class="li">删除命名空间前,请先手动删除命名空间(除kube-system、kube-public、kube-node-lease命名空间)下已部署的工作负载及容器组。</li>
<li class="li">命名空间删除后无法恢复,请您谨慎操作。</li>
</ul>
</section>
<section id="Delete_namespace__steps_hwl_h2w_n5b"><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps" id="Delete_namespace__steps_hwl_h2w_n5b"><li class="li step">
<span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/pks/cluster" target="_blank" rel="external noopener">容器服务CaaS Serverless集群控制台</a>。</span>
</li><li class="li step">
<span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">集群</span>,进入<span class="ph uicontrol">集群列表</span>页面。</span>
</li><li class="li step">
<span class="ph cmd">在目标地域中,单击目标集群名称,进入<span class="ph uicontrol">集群信息</span>页面。</span>
</li><li class="li step">
<span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">命名空间</span>,进入命名空间页面。</span>
</li><li class="li step">
<span class="ph cmd">在目标命名空间<span class="ph uicontrol">操作</span>列,单击<span class="ph uicontrol">删除</span>,进入<span class="ph uicontrol">删除命名空间</span>页面。</span>
</li><li class="li step">
<span class="ph cmd">输入<strong class="ph b">验证码</strong>,单击<span class="ph uicontrol">确定</span>。</span>
</li></ol></section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!