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 in Kubernetes by Raina
35 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 by Sirajul
• 40,980 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
677 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
• 45,870 points
345 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
• 45,870 points
509 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
• 45,870 points
104 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
3,391 views
+3 votes
1 answer