Skip to content

Instantly share code, notes, and snippets.

@caiocampoos
Created February 9, 2024 03:29
Show Gist options
  • Save caiocampoos/5c9db4b4ff7365b15abe2b0d7d7cd2b8 to your computer and use it in GitHub Desktop.
Save caiocampoos/5c9db4b4ff7365b15abe2b0d7d7cd2b8 to your computer and use it in GitHub Desktop.
Namespace Nuker
(
NAMESPACE=your-rogue-namespace
kubectl proxy &
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment