Skip to content

Instantly share code, notes, and snippets.

@rdemorais
Created October 4, 2023 16:50
Show Gist options
  • Save rdemorais/bba4c28048098c9a5bcaab525fa9e3c9 to your computer and use it in GitHub Desktop.
Save rdemorais/bba4c28048098c9a5bcaab525fa9e3c9 to your computer and use it in GitHub Desktop.
Finalize stuck namespace - K8s
NAMESPACE=ingress-nginx; kubectl get namespace $NAMESPACE -o json | 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