helm: hardcode probes and strategy, remove from values.yaml

This commit is contained in:
Naeel
2026-04-13 06:46:25 +03:00
parent f9846918aa
commit f9435c9126
@@ -10,12 +10,10 @@ metadata:
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
strategy: strategy:
type: {{ .Values.strategy.type }} type: RollingUpdate
{{- if eq .Values.strategy.type "RollingUpdate" }}
rollingUpdate: rollingUpdate:
maxSurge: {{ .Values.strategy.rollingUpdate.maxSurge }} maxSurge: 1
maxUnavailable: {{ .Values.strategy.rollingUpdate.maxUnavailable }} maxUnavailable: 0
{{- end }}
selector: selector:
matchLabels: matchLabels:
{{- include "shared-sqs.selectorLabels" . | nindent 6 }} {{- include "shared-sqs.selectorLabels" . | nindent 6 }}
@@ -79,16 +77,16 @@ spec:
{{- toYaml .Values.resources | nindent 10 }} {{- toYaml .Values.resources | nindent 10 }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: {{ .Values.probes.liveness.path }} path: /health
port: 4100 port: 4100
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} initialDelaySeconds: 5
periodSeconds: {{ .Values.probes.liveness.periodSeconds }} periodSeconds: 10
readinessProbe: readinessProbe:
httpGet: httpGet:
path: {{ .Values.probes.readiness.path }} path: /health
port: 4100 port: 4100
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} initialDelaySeconds: 3
periodSeconds: {{ .Values.probes.readiness.periodSeconds }} periodSeconds: 5
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}