k8s delete namespace has been in terminating state
When faced delete ns been in a situation it can be deleted by terminating tune k8s api.
1, create api proxy.
[root@node1 ~]# kubectl proxy --port=8081
2 ns added to the json file.
[root@node1 ~]# kubectl get namespace ingress-nginx -o json |jq '.spec = {"finalizers":[]}' >temp02.json
3, call api deleted.
[root@node1 ~]# curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp01.json 127.0.0.1:8081/api/v1/namespaces/ingress-nginx/finalize