Skip to content

Instantly share code, notes, and snippets.

@thomanhphuc
Created August 30, 2023 08:33
Show Gist options
  • Save thomanhphuc/b39eeebf915c6490401abf90a3ff2799 to your computer and use it in GitHub Desktop.
Save thomanhphuc/b39eeebf915c6490401abf90a3ff2799 to your computer and use it in GitHub Desktop.
Remove Namespace stuck in terminating state after delete
kubectl get namespace keda -o json >tmp.json
edit tmp.json
"spec": {
"finalizers": [
]
},
kubectl proxy
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/keda/finalize
kubectl delete apiservice v1beta1.external.metrics.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment