Paul Bastide

Engineering the World

kube ns delete stuck in terminating

Per, you can delete the Namespace stuck in the Terminating Phase.


1. Grab the namespace json

oc get namespace ma-operator -o json > tmp.json

2. Edit tmp.json to remove the finalizer

3. Start the proxy

oc proxy &

4. Delete the namespace

curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json