Review RollingUpdate settings

This commit is contained in:
andreaTP 2022-06-17 12:52:50 +01:00 committed by Pedro Igor
parent 0719d3e49b
commit 6812bad2ae

View file

@ -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()