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

0 votes
If i have set the rolling update for a statefull replica=1. Will this work?
Jul 19, 2019 in Kubernetes by Raina
46 views

1 answer to this question.

0 votes
  • No, because there is only 1 replica, any changes to state full set would result in an outage. 

  • So rolling update of a StatefulSet would need to tear down one (or more) old pods before replacing them. 

  • In case 2 replicas, a rolling update will create the second pod, which it will not be succeeded, the PD is locked by first (old) running pod, the rolling update is not deleting the first pod in time to release the lock on the PDisk in time for the second pod to use it. 

  • If there's only one that rolling update goes 1 -> 0 -> 1.f the app can run with multiple identical instances concurrently, use a Deployment and roll 1 -> 2 -> 1 instead.

answered Jul 19, 2019 by Sirajul
• 45,960 points

Related Questions In Kubernetes

0 votes
2 answers

DNS does not resolve with NGINX in Kubernetes

adding to @kalgi's answer Using just the hostname ...READ MORE

answered Aug 30, 2018 in Kubernetes by Nilesh
• 6,920 points
789 views
0 votes
1 answer

How do you set-up Mongo replica set on Kubernetes?

Follow these steps To create a Kubernetes 1.5 ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 50,840 points
388 views
0 votes
1 answer

Error saying "The specified bucket does not exist" in kubernetes

Bucket is created in another region. Looks like ...READ MORE

answered Aug 31, 2018 in Kubernetes by Kalgi
• 50,840 points
626 views
0 votes
1 answer

Set the concurrencyPolicy in a cronjob

The property concurrencyPolicy is part of the CronJob spec, ...READ MORE

answered Sep 18, 2018 in Kubernetes by Kalgi
• 50,840 points
127 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, 2019 in Others by anonymous
4,302 views
+3 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 11, 2019 in Kubernetes by Kalgi
• 50,840 points

reshown Apr 12, 2019 by Kalgi 1,161 views