Can not delete pods in Kubernetes

AATHITH RAJENDRAN picture AATHITH RAJENDRAN · Nov 21, 2018 · Viewed 12.1k times · Source

I tried installing dgraph (single server) using Kubernetes.
I created pod using:

kubectl create -f https://raw.githubusercontent.com/dgraph-io/dgraph/master/contrib/config/kubernetes/dgraph-single.yaml

Now all I need to do is to delete the created pods.
I tried deleting the pod using:

kubectl delete pod pod-name

The result shows pod deleted, but the pod keeps recreating itself.
I need to remove those pods from my Kubernetes. What should I do now?

Answer

hk' picture hk' · Nov 27, 2018

I did face same issue. Run command:

kubectl get deployment

you will get respective deployment to your pod. Copy it and then run command:

kubectl delete deployment xyz

then check. No new pods will be created.