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
24 views

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
1 answer

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

I have followed the link which you have ...READ MORE

answered Jul 23, 2018 in Kubernetes by Atul
• 10,240 points
134 views
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 in Kubernetes by Sirajul
• 25,700 points
37 views
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 in Kubernetes by Sirajul
• 25,700 points
37 views
0 votes
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
• 40,460 points
61 views
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
2,157 views
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
324 views
+1 vote
4 answers

Can I set ulimit for containers in k8s?

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

answered May 7 in Kubernetes by Inayat
1,823 views