ns=ingress-nginx kubectl get namespace $ns -o json > tmp.json kubectl proxy --port=8081 另起一个连接 curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8081/api/v1/namespaces/$ns/finalize
ns=ingress-nginx kubectl get namespace $ns -o json |jq .spec={"finalizers":[]} > tmp.json kubectl replace --raw "/api/v1/namespaces/$ns/finalize" -f tmp.json kubectl patch ns $ns -p '{"metadata":{"finalizers":null}}'
标签:tmp,kubectl,ns,--,namespace,json,Terminating,k8s From: https://www.cnblogs.com/hjfeng1988/p/16951486.html