diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 6bf6b9e3c..2502a23c3 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -44,16 +44,32 @@ spec: - name: http containerPort: {{ .Values.service.targetPort }} protocol: TCP + {{- if .Values.deployment.livenessProbe.enabled }} livenessProbe: - timeoutSeconds: 10 + timeoutSeconds: {{ .Values.deployment.livenessProbe.timeoutSeconds | default 10 }} + {{- with .Values.deployment.livenessProbe.httpGet }} + httpGet: + path: {{ .path | default "/" }} + port: {{ .port | default "http" }} + {{- else }} httpGet: path: / port: http + {{- end }} + {{- end }} + {{- if .Values.deployment.readinessProbe.enabled }} readinessProbe: - timeoutSeconds: 10 + timeoutSeconds: {{ .Values.deployment.readinessProbe.timeoutSeconds | default 10 }} + {{- with .Values.deployment.readinessProbe.httpGet }} + httpGet: + path: {{ .path | default "/" }} + port: {{ .port | default "http" }} + {{- else }} httpGet: path: / port: http + {{- end }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/helm/values.yaml b/helm/values.yaml index c23d29074..f47d2a82b 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -43,6 +43,12 @@ service: type: ClusterIP port: 80 +deployment: + livenessProbe: + enabled: true + readinessProbe: + enabled: true + ingress: enabled: false className: ""