Skip to content
Snippets Groups Projects
Commit 434a5fd2 authored by Arie Peterson's avatar Arie Peterson Committed by Varac
Browse files

Use exec probes for healthcheck contents

parent dfe1cb81
No related branches found
No related tags found
1 merge request!57Resolve "Tune onlyoffice livelinessprobe to catch installation error"
......@@ -32,34 +32,24 @@ spec:
imagePullPolicy: {{ .Values.onlyoffice.image.pullPolicy }}
{{- if .Values.onlyoffice.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: /welcome
port: http
scheme: HTTP
exec:
command:
- "/bin/bash"
- "-c"
- "output=$(curl -s http://localhost:{{ .Values.onlyoffice.containerPort }}/healthcheck); if [ $? -ne 0 ]; then exit 1; fi; if [ \"$output\" == \"true\" ]; then exit 0; else exit 2; fi"
initialDelaySeconds: {{ .Values.onlyoffice.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.onlyoffice.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.onlyoffice.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.onlyoffice.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.onlyoffice.livenessProbe.failureThreshold }}
{{- end }}
{{- if .Values.onlyoffice.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: /welcome
port: http
scheme: HTTP
initialDelaySeconds: {{ .Values.onlyoffice.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.onlyoffice.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.onlyoffice.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.onlyoffice.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.onlyoffice.readinessProbe.failureThreshold }}
{{- end }}
{{- if .Values.onlyoffice.startupProbe.enabled }}
startupProbe:
httpGet:
path: /welcome
port: http
scheme: HTTP
exec:
command:
- "/bin/bash"
- "-c"
- "output=$(curl -s http://localhost:{{ .Values.onlyoffice.containerPort }}/healthcheck); if [ $? -ne 0 ]; then exit 1; fi; if [ \"$output\" == \"true\" ]; then exit 0; else exit 2; fi"
periodSeconds: {{ .Values.onlyoffice.startupProbe.periodSeconds }}
timeoutSeconds: {{ .Values.onlyoffice.startupProbe.timeoutSeconds }}
successThreshold: {{ .Values.onlyoffice.startupProbe.successThreshold }}
......
......@@ -140,14 +140,6 @@ onlyoffice:
successThreshold: 1
failureThreshold: 2
readinessProbe:
enabled: true
initialDelaySeconds: 0
timeoutSeconds: 2
periodSeconds: 30
successThreshold: 1
failureThreshold: 2
startupProbe:
enabled: true
timeoutSeconds: 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment