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