fix: add liveness and readiness probe
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-04-21 23:13:14 +02:00
parent c7346ec71a
commit 5cadbd31a2
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -26,6 +26,11 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} 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: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
@ -33,6 +38,11 @@ spec:
- name: https - name: https
containerPort: 443 containerPort: 443
protocol: TCP protocol: TCP
readinessProbe:
httpGet:
scheme: {{ .Values.config.DRONE_SERVER_PROTO | upper | default "HTTP" }}
path: /healthz
port: {{ .Values.config.DRONE_SERVER_PROTO | default "http" }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }} {{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }}