Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

force delete pod kubernetes

kubectl delete pods <pod> --grace-period=0 --force
Comment

delete completed kubernetes pod

$ kubectl delete pod $(kubectl get pods | grep Completed | awk '{print $1}')
Comment

delete completed kubernetes pod

kubectl get pod --field-selector=status.phase==Succeeded
Comment

delete completed kubernetes pod

$ kubectl get pods | grep Completed | awk '{print $1}' | xargs kubectl delete pod
Comment

delete completed kubernetes pod

kubectl get pods --field-selector=status.phase!=Running
Comment

PREVIOUS NEXT
Code Example
Shell :: ntp service not installed 
Shell :: is there a infinitey infinitey 
Shell :: how to automatically change wall paper in kubuntu 
Shell :: print the content of file according to the size of line 
Shell :: Bash script to authenticate machine users 
Shell :: pushing things to git 
Shell :: get cwd in shell script 
Shell :: pip3 or pip? 
Shell :: docker container commands 
Shell :: uninstall grepper 
Shell :: github merge branch to master 
Shell :: grep -w flag 
Shell :: powershell script to run powershell script 
Shell :: Filter in terminal 
Shell :: grep regular expression repeat same character 
Shell :: How to Install and Configure doctl on Ubuntu 
Shell :: join rows in one string linux 
Shell :: linux architecture kernel 
Shell :: see unimported react comp. 
Shell :: How to use very_good_cli in flutter 
Shell :: delete file bash script with time and date 
Shell :: running simple project with "Fresh" framwork 
Shell :: vim sensible linux 
Shell :: curl change source ip 
Shell :: static noise ubuntu after update 
Shell :: slapd debugging 
Shell :: pulish changes to firebase function 
Shell :: shell sort visualization 
Shell :: git change oriign 
Shell :: removing large files 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =