From d5b49342d86949a8a0a590d4cd1f900026d76045 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:19:46 +0100 Subject: [PATCH] docs: PDBs for all pods, require spread (#2437) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: jonas@giantswarm.io --- helm/docs-app/templates/deployment.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/helm/docs-app/templates/deployment.yaml b/helm/docs-app/templates/deployment.yaml index b46747c280..77817d5ceb 100644 --- a/helm/docs-app/templates/deployment.yaml +++ b/helm/docs-app/templates/deployment.yaml @@ -8,6 +8,11 @@ metadata: spec: replicas: 2 revisionHistoryLimit: 2 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 selector: matchLabels: app: {{ .Values.name }} @@ -19,13 +24,11 @@ spec: spec: affinity: podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app: {{ .Values.name }} - topologyKey: kubernetes.io/hostname - weight: 100 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: {{ .Values.name }} + topologyKey: kubernetes.io/hostname securityContext: runAsUser: 1000 seccompProfile: @@ -33,7 +36,6 @@ spec: containers: - name: docs-app - # Public image required image: gsoci.azurecr.io/giantswarm/docs:{{ .Chart.Version }} securityContext: allowPrivilegeEscalation: false