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 :: install nodemon dev 
Shell :: how to install golang on manjaro 
Shell :: jupyterlab installation 
Shell :: git delete local branch no longer on remote 
Shell :: remove microsoft edge from ubuntu 
Shell :: inkscape ubuntu ppa 
Shell :: composer update composer 
Shell :: check battery health on ubuntu 
Shell :: Job for apache2.service failed because the control process exited with error code. 
Shell :: flutter web run in release mode 
Shell :: download torrent on ubuntu 
Shell :: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 
Shell :: macos install yarn 
Shell :: uninstall mongodb ubuntu 
Shell :: how to install vue router 
Shell :: create venv in windows 
Shell :: add user to sudoers 
Shell :: hello world bash 
Shell :: how to extract tgz file in linux 
Shell :: restart lampp command terminal 
Shell :: remove pods from xcode project terminal 
Shell :: macos clear dns cache 
Shell :: git delete merged branches 
Shell :: kill nohup process 
Shell :: uninstall cheese ubuntu 20.04 
Shell :: grub customizer ubuntu 
Shell :: start ssh agent windows 10 
Shell :: git stash history 
Shell :: how to start xampp in ubuntu 
Shell :: uninstall genymotion from ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =