pilasguru

Delete kubernetes namespace

Sep 1st, 2021 (edited)
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. # console 1
  2. kubectl proxy
  3.  
  4. # console 2
  5. NS=<namespace>; \
  6.   kubectl get ns $NS -o json | \
  7.   jq '.spec.finalizers=[]' | \
  8.   curl -X PUT http://localhost:8001/api/v1/namespaces/$NS/finalize -H "Content-Type: application/json" --data @-
Add Comment
Please, Sign In to add comment