force delete namespace

2024-01-10  本文已影响0人  allenhaozi
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

reference

上一篇下一篇

猜你喜欢

热点阅读