From f9435c9126b7aed5f2d798eaf28b9a95b81fccd2 Mon Sep 17 00:00:00 2001 From: Naeel Date: Mon, 13 Apr 2026 06:46:25 +0300 Subject: [PATCH] helm: hardcode probes and strategy, remove from values.yaml --- .../helm/shared-sqs/templates/deployment.yaml | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/deployments/helm/shared-sqs/templates/deployment.yaml b/deployments/helm/shared-sqs/templates/deployment.yaml index 3f20fa1..f73828e 100644 --- a/deployments/helm/shared-sqs/templates/deployment.yaml +++ b/deployments/helm/shared-sqs/templates/deployment.yaml @@ -10,12 +10,10 @@ metadata: spec: replicas: {{ .Values.replicaCount }} strategy: - type: {{ .Values.strategy.type }} - {{- if eq .Values.strategy.type "RollingUpdate" }} + type: RollingUpdate rollingUpdate: - maxSurge: {{ .Values.strategy.rollingUpdate.maxSurge }} - maxUnavailable: {{ .Values.strategy.rollingUpdate.maxUnavailable }} - {{- end }} + maxSurge: 1 + maxUnavailable: 0 selector: matchLabels: {{- include "shared-sqs.selectorLabels" . | nindent 6 }} @@ -79,16 +77,16 @@ spec: {{- toYaml .Values.resources | nindent 10 }} livenessProbe: httpGet: - path: {{ .Values.probes.liveness.path }} + path: /health port: 4100 - initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.probes.liveness.periodSeconds }} + initialDelaySeconds: 5 + periodSeconds: 10 readinessProbe: httpGet: - path: {{ .Values.probes.readiness.path }} + path: /health port: 4100 - initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.probes.readiness.periodSeconds }} + initialDelaySeconds: 3 + periodSeconds: 5 {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }}