From 5cadbd31a20286b3e0e9f39f2a0fc6ad9fdfa30e Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 21 Apr 2022 23:13:14 +0200 Subject: [PATCH] fix: add liveness and readiness probe --- templates/deployment.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index d3e54a1..6956b74 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -26,6 +26,11 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + livenessProbe: + httpGet: + scheme: {{ .Values.config.DRONE_SERVER_PROTO | upper | default "HTTP" }} + path: /healthz + port: {{ .Values.config.DRONE_SERVER_PROTO | default "http" }} ports: - name: http containerPort: 80 @@ -33,6 +38,11 @@ spec: - name: https containerPort: 443 protocol: TCP + readinessProbe: + httpGet: + scheme: {{ .Values.config.DRONE_SERVER_PROTO | upper | default "HTTP" }} + path: /healthz + port: {{ .Values.config.DRONE_SERVER_PROTO | default "http" }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }}