k get ns delete-ns-name -ojson
# edit finalizer to empty slice
kubectl proxy &
PID=$!
curl -X PUT http://localhost:8001/api/v1/namespaces/delete-me/finalize -H "Content-Type: application/json" --data-binary @ns-without-finalizers.json
kill $PID
k get ns delete-ns-name -ojson
# edit finalizer to empty slice
kubectl proxy &
PID=$!
curl -X PUT http://localhost:8001/api/v1/namespaces/delete-me/finalize -H "Content-Type: application/json" --data-binary @ns-without-finalizers.json
kill $PID
本文标题:force delete namespace
本文链接:https://www.haomeiwen.com/subject/dvszndtx.html
网友评论