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 in Kubernetes by Jenny
19 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 by Sirajul
• 17,910 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 in Kubernetes by Harsha
12 views
0 votes
1 answer

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

Make sure your imagePullPolicy is set to ...READ MORE

answered Jul 12 in Kubernetes by Sirajul
• 17,910 points
37 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 in Kubernetes by Sirajul
• 17,910 points
15 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 in Kubernetes by Sirajul
• 17,910 points
16 views
0 votes
1 answer
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
1,601 views
+3 votes
1 answer
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 in Kubernetes by Sirajul
• 17,910 points
26 views