Horje
kubectl delete pods Code Example
kubectl delete all pods
kubectl delete --all pods
force delete pod kubernetes
kubectl delete pods <pod> --grace-period=0 --force
kubectl delete pods
kubectl delete pod podname
kubectl cleanup pods
# I deleted the resources in the below order and it worked for me.

# To get all the resources.

kubectl get pods,services,deployments,jobs,daemonset

# Delete the resources like below:

kubectl delete deployments <deployment>
kubectl delete services <services>
kubectl delete pods <pods> --namespace=<namespace>
kubectl delete daemonset <daemonset>
kubectl delete pods wildcard
$ kubectl get pods -n default --no-headers=true | awk '/web-app/{print $1}'| xargs  kubectl delete -n default podpod "web-app-7fb4f5bff9-8crgx" deletedpod "web-app-7fb4f5bff9-ftzfd" deletedpod "web-app-7fb4f5bff9-rrkt2" deleted
Source: medium.com




Shell

Related
centos install wget Code Example centos install wget Code Example
install samba on raspberry pi Code Example install samba on raspberry pi Code Example
elastic beanstalk installation command on cli Code Example elastic beanstalk installation command on cli Code Example
error: can't find python executable "python", you can set the python env variable. Code Example error: can't find python executable "python", you can set the python env variable. Code Example
error ppa.launchpad.net/certbot/certbot/ubuntu focal Release Code Example error ppa.launchpad.net/certbot/certbot/ubuntu focal Release Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12