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()
|
||||
.withNewStrategy()
|
||||
.withNewRollingUpdate()
|
||||
.withMaxSurge(new IntOrString("25%"))
|
||||
.withMaxUnavailable(new IntOrString("25%"))
|
||||
// Same defaults as for a StatefulSet: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#maximum-unavailable-pods
|
||||
.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()
|
||||
.endStrategy()
|
||||
.endSpec()
|
||||
|
|
Loading…
Reference in a new issue