6 lines
267 B
Bash
Executable File
6 lines
267 B
Bash
Executable File
microk8s kubectl get pods --all-namespaces | grep Terminating | while read line; do
|
|
pod_name=$(echo $line | awk '{print $2}' ) \
|
|
name_space=$(echo $line | awk '{print $1}' ); \
|
|
microk8s kubectl delete pods $pod_name -n $name_space --grace-period=0 --force
|
|
done
|