Review RollingUpdate settings
This commit is contained in:
parent
0719d3e49b
commit
6812bad2ae
1 changed files with 3 additions and 2 deletions
|
@ -504,8 +504,9 @@ public class KeycloakDeployment extends OperatorManagedResource implements Statu
|
||||||
.endTemplate()
|
.endTemplate()
|
||||||
.withNewStrategy()
|
.withNewStrategy()
|
||||||
.withNewRollingUpdate()
|
.withNewRollingUpdate()
|
||||||
.withMaxSurge(new IntOrString("25%"))
|
// Same defaults as for a StatefulSet: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#maximum-unavailable-pods
|
||||||
.withMaxUnavailable(new IntOrString("25%"))
|
.withNewMaxSurge(1) // maximum number of Pods that can be created over the desired number of Pods
|
||||||
|
.withNewMaxUnavailable(1) // maximum number of Pods that can be unavailable during the update process
|
||||||
.endRollingUpdate()
|
.endRollingUpdate()
|
||||||
.endStrategy()
|
.endStrategy()
|
||||||
.endSpec()
|
.endSpec()
|
||||||
|
|
Loading…
Reference in a new issue