How to kill pods on Kubernetes local setup

To delete the pod:

kubectl delete pods web-3476088249-w66jr

If this pod is started via some replicaSet or deployment or anything that is creating replicas then find that and delete that first.

kubectl get all

This will list all the resources that have been created in your k8s cluster. To get information with respect to resources created in your namespace kubectl get all --namespace=<your_namespace>

To get info about the resource that is controlling this pod, you can do

kubectl describe  web-3476088249-w66jr

There will be a field “Controlled By”, or some owner field using which you can identify which resource created it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)