conditional proeb

This commit is contained in:
Stavros kois
2023-02-06 19:46:33 +02:00
parent 3c776b6897
commit 687f2f9243

View File

@@ -79,12 +79,21 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
timeoutSeconds: 5
failureThreshold: 5
startupProbe:
{{- if .Values.nextcloud.install_ffmpeg }}
exec:
command:
- /bin/sh
- -c
- |
command -v ffmpeg /dev/null 2>&1 || exit 1
{{- else }}
httpGet:
path: /status.php
port: http
httpHeaders:
- name: Host
value: localhost
{{- end }}
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5