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,200 points
13 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,000 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,200 points
71 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to fail a (cron) job after a certain number of retries?

You're trying to set 3 asbackoffLimit of your Job. ...READ MORE

answered Sep 17, 2018 in Kubernetes by Kalgi
• 35,750 points
54 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
• 35,750 points
30 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
471 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,000 points
165 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
995 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.