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?
If you are using any version of kubectl <= 1.4, you should omit the --force option. If the pod is stuck on unknown state, run the command kubectl patch pod <pod> -p '{"metadata":{"finalizers":null}}' to remove it from the cluster.
If you just delete the ReplicaSet, then the ReplicaSet and it's Pods will be deleted. But the Deployment controller will again recreate the ReplicaSet and then the newly created ReplicaSet will create Pods again. But if you just delete the original Deployment, then everything for it will be deleted too.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With