Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl delete all from namespace

kubectl delete all --all -n {namespace}
Comment

kubernetes delete all from namespace

kubectl delete all --all -n {namespace}
Comment

kubernetes force delete namespace

(
NAMESPACE=your-rogue-namespace
rm temp.json
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
kill $(lsof -t -i:8001)
)
Comment

best way to delete kubernetes namespace

kubectl delete namespace --force --grace-period=30
Comment

PREVIOUS NEXT
Code Example
Shell :: github no changes added to commit 
Shell :: github push an existing repository from the command line 
Shell :: git push to another repository 
Shell :: git files change from commit 
Shell :: install flask 
Shell :: undo a git merge 
Shell :: adding in ssh agent 
Shell :: how to install morgan in node js 
Shell :: docker wordpress 
Shell :: windows check installed fonts 
Shell :: copy folder from ssh to local 
Shell :: ufw deny from ip 
Shell :: how to check is heroku git remote is added 
Shell :: arch linux logo 
Shell :: macos install ruby 
Shell :: bash split and get last 
Shell :: apk add build-essential 
Shell :: windows execute powershell script define user 
Shell :: powershell git 
Shell :: added changes to a specific commit 
Shell :: ngrok start server 
Shell :: linux create executable 
Shell :: jitsi run pod ios app !] Invalid `Podfile` file: cannot load such fil 
Shell :: split string using linux cmd 
Shell :: open port 8080 fedora 
Shell :: replace char for new line 
Shell :: ssh command delete file 
Shell :: how to test if docker is running from boot 
Shell :: import external python modules in blender 
Shell :: install get cli 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =