开启 proxy
[root@master01 tmp]# kubectl proxy --port=6880
Starting to serve on 127.0.0.1:6880
[root@master01 ~]# kubectl get ns kubesphere-system -o json >m12.json
[root@master01 ~]# vi m12.json
修改将spec 的 finalize 置空,如下所示
curl -k -H "Content-Type: application/json" -X PUT --data-binary @m12.json http://127.0.0.1:6880/api/v1/namespaces/kubesphere-system/finalize
验证是否删掉
标签:kubectl,Terminating,0.1,master01,namespace,json,m12,k8,root From: https://www.cnblogs.com/vzhangxk/p/17875210.html