Add enabled flags for health probes in web and api deployments
This commit is contained in:
@@ -39,10 +39,14 @@ spec:
|
||||
- name: http
|
||||
containerPort: {{ .Values.api.service.targetPort }}
|
||||
protocol: TCP
|
||||
{{- if and .Values.api.healthProbes.enabled .Values.api.livenessProbe.enabled }}
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.api.livenessProbe | nindent 12 }}
|
||||
{{- omit .Values.api.livenessProbe "enabled" | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if and .Values.api.healthProbes.enabled .Values.api.readinessProbe.enabled }}
|
||||
readinessProbe:
|
||||
{{- toYaml .Values.api.readinessProbe | nindent 12 }}
|
||||
{{- omit .Values.api.readinessProbe "enabled" | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.api.resources | nindent 12 }}
|
||||
env:
|
||||
@@ -74,4 +78,4 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -39,10 +39,14 @@ spec:
|
||||
- name: http
|
||||
containerPort: {{ .Values.web.service.targetPort }}
|
||||
protocol: TCP
|
||||
{{- if and .Values.web.healthProbes.enabled .Values.web.livenessProbe.enabled }}
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.web.livenessProbe | nindent 12 }}
|
||||
{{- omit .Values.web.livenessProbe "enabled" | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if and .Values.web.healthProbes.enabled .Values.web.readinessProbe.enabled }}
|
||||
readinessProbe:
|
||||
{{- toYaml .Values.web.readinessProbe | nindent 12 }}
|
||||
{{- omit .Values.web.readinessProbe "enabled" | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.web.resources | nindent 12 }}
|
||||
env:
|
||||
@@ -74,4 +78,4 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -48,7 +48,10 @@ web:
|
||||
env: []
|
||||
|
||||
# Liveness and readiness probes
|
||||
healthProbes:
|
||||
enabled: true # Set to false to disable both probes
|
||||
livenessProbe:
|
||||
enabled: true # Set to false to disable liveness probe
|
||||
httpGet:
|
||||
path: /docs
|
||||
port: http
|
||||
@@ -56,6 +59,7 @@ web:
|
||||
periodSeconds: 10
|
||||
|
||||
readinessProbe:
|
||||
enabled: true # Set to false to disable readiness probe
|
||||
httpGet:
|
||||
path: /docs
|
||||
port: http
|
||||
@@ -104,7 +108,10 @@ api:
|
||||
value: "info"
|
||||
|
||||
# Liveness and readiness probes
|
||||
healthProbes:
|
||||
enabled: true # Set to false to disable both probes
|
||||
livenessProbe:
|
||||
enabled: true # Set to false to disable liveness probe
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
@@ -112,6 +119,7 @@ api:
|
||||
periodSeconds: 10
|
||||
|
||||
readinessProbe:
|
||||
enabled: true # Set to false to disable readiness probe
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: http
|
||||
|
||||
Reference in New Issue
Block a user