ZhangZhihui's Blog  
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, there's 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

 

posted on 2021-02-05 16:55  ZhangZhihuiAAA  阅读(53)  评论(0编辑  收藏  举报