Created
August 30, 2023 08:33
-
-
Save thomanhphuc/b39eeebf915c6490401abf90a3ff2799 to your computer and use it in GitHub Desktop.
Remove Namespace stuck in terminating state after delete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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