Skip to content

Commit

Permalink
Make es-gateway use rolling update instead of recreate strategy (tige…
Browse files Browse the repository at this point in the history
  • Loading branch information
asincu committed May 12, 2023
1 parent 5b3643f commit 6490bc4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/render/logstorage/esgateway/esgateway.go
Expand Up @@ -18,6 +18,8 @@ import (
"fmt"
"strings"

"github.com/tigera/operator/pkg/ptr"

appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
policyv1beta1 "k8s.io/api/policy/v1beta1"
Expand Down Expand Up @@ -282,7 +284,11 @@ func (e *esGateway) esGatewayDeployment() *appsv1.Deployment {
},
Spec: appsv1.DeploymentSpec{
Strategy: appsv1.DeploymentStrategy{
Type: appsv1.RecreateDeploymentStrategyType,
Type: appsv1.RollingUpdateDeploymentStrategyType,
RollingUpdate: &appsv1.RollingUpdateDeployment{
MaxUnavailable: ptr.IntOrStrPtr("0"),
MaxSurge: ptr.IntOrStrPtr("100%"),
},
},
Template: *podTemplate,
Replicas: e.cfg.Installation.ControlPlaneReplicas,
Expand Down

0 comments on commit 6490bc4

Please sign in to comment.