首页 > Web开发 > 详细

Kubernetes - Delete a namespace in Terminating status

时间:2021-02-05 19:18:29      阅读:49      评论:0      收藏:0      [点我收藏+]
scnzzh@zubt1:~$ kubectl get ns rook-ceph
NAME        STATUS        AGE
rook-ceph   Terminating   118m

scnzzh@zubt1:~$ kubectl get ns rook-ceph -o json > rook-ceph-ns.json


Edit the json file and make the value for "finalizers" an empty list. In my case, theres an item "kubernetes" in the list, delete it.

scnzzh@zubt1:~$ kubectl replace --raw "/api/v1/namespaces/rook-ceph/finalize" -f rook-ceph-ns.json


scnzzh@zubt1:~$ kubectl get ns rook-ceph
Error from server (NotFound): namespaces "rook-ceph" not found

 

Kubernetes - Delete a namespace in Terminating status

原文:https://www.cnblogs.com/zhangzhihui/p/14378704.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!