How can I stop a replicaset from restarting after deleting

0 votes

I just created a new cluster and to test if it was working fine I executed:

$ kubectl run -it hello --image=busybox -- sh

But now when I'm trying to delete the pods they restart automatically. So I figured that the replicaset might be creating these pods and so I deleted it as well. But even the replicaset as well recreates itself again. What should I do?

Dec 31, 2018 in Kubernetes by Atul
• 10,240 points

1 answer to this question.

0 votes

You need to delete the corresponding deployment. So first list the deployments by:

kubectl get deployments

Then delete it by running:

kubectl delete deployment <deploymentName>
answered Dec 31, 2018 by ajs3033
• 7,280 points

Related Questions In Kubernetes

0 votes
2 answers

How can I access a service installed on Kubernetes from anywhere?

if u want to directly want to ...READ MORE

answered Jul 26, 2020 in Kubernetes by Akash Gupta
0 votes
1 answer

how can i access two containers that are inside a pod from the browser with IP address?

Just do port forward. kubectl port-forward [nginx-pod-name] 80:80 kubectl ...READ MORE

answered Jul 18, 2019 in Kubernetes by Sirajul
• 59,070 points
0 votes
1 answer

How can i get all the pods on a node?

You can use the following command to ...READ MORE

answered Jul 12, 2019 in Kubernetes by Sirajul
• 59,070 points
+1 vote
1 answer
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,370 points
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
+1 vote
4 answers

Can I set ulimit for containers in k8s?

You can either modify them via UserData ...READ MORE

answered May 7, 2019 in Kubernetes by Inayat