do rolling updates declared with a deployment take effect if i manually delete pods of the replica set with kubectl delete pods

0 votes
do rolling updates declared with a deployment take effect if i manually delete pods of the replica set with kubectl delete pods or with the dashboard? Will the minimum required no of pods be maintained?
Jul 19, 2019 in Kubernetes by Jenny
609 views

1 answer to this question.

0 votes
  • Yes, the scheduler will make sure (as long as you have the correct resources) that the number of desired pods are met. 

  • If you delete a pod, it will recreate it. 

  • Also deleting a service won't delete the Replica set. if you remove Service or deployment you want to remove all resources which Service created.

  •  Also having a single replica for a deployment is usually not recommended because you cannot scale out and are treating in a specific way

  • Any app should be `Ingress` -> `Service` -> `Deployment` -> (volume mount or 3rd-party cloud storage)

  • You can skip ingress and just have `LoadBalancer (service)` -> `Deployment` (or Pod but they don't auto restart, deployments do)

answered Jul 19, 2019 by Sirajul
• 59,230 points

Related Questions In Kubernetes

0 votes
1 answer

How do I determine the status of a Deployment? - Kubernetes

Use kubectl get deployment <deployment>. If the ...READ MORE

answered Jul 25, 2019 in Kubernetes by Harsha
497 views
0 votes
2 answers

How do I update all my pods if the image is changed but the tag is the same?

since K8s 1.15 kubectl rollout restart do the ...READ MORE

answered Jul 24, 2020 in Kubernetes by Mathieu V
6,793 views
0 votes
1 answer

Does the rolling update with state full set replica=1 work?

No, because there is only 1 replica, ...READ MORE

answered Jul 19, 2019 in Kubernetes by Sirajul
• 59,230 points
2,322 views
0 votes
2 answers

How do I update all my pods if the image changed but the tag is the same? - Kubernetes

Make sure your imagePullPolicy is set to Always(this is the ...READ MORE

answered Aug 6, 2019 in Kubernetes by Sirajul
• 59,230 points
3,113 views
+1 vote
1 answer
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
14,619 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,113 views
0 votes
1 answer

How do i tie a service to a pod or a set of pods?

By declaring pods with the label(s) and ...READ MORE

answered Jul 16, 2019 in Kubernetes by Sirajul
• 59,230 points
1,372 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP