A namespace is stuck in the Terminating state

Standard

ref:
https://www.ibm.com/docs/en/cloud-private/3.2.0?topic=console-namespace-is-stuck-in-terminating-state

> kubectl get ns
NAME                   STATUS        AGE
ingress-nginx          Terminating   31m
 
> kubectl get namespace ingress-nginx -o json > tmp.json
> vi tmp.json
...
    "spec": {
    },
...
> kubectl proxy
> curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/ingress-nginx/finalize

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.