Created
April 20, 2020 18:23
-
-
Save rberrelleza/38d81ee6ca335700f04c4a227ffc4868 to your computer and use it in GitHub Desktop.
Force terminate a namespace stuck in the terminating phase
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
namespace=$1 | |
kubectl get namespace $namespace -ojson | jq 'del(.spec.finalizers[0])' | kubectl replace --raw "/api/v1/namespaces/$namespace/finalize" -f=- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment