From 19a5b87fd0480423861486fbeabf216c5b7dbd8c Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 6 Feb 2023 19:27:04 +0200 Subject: [PATCH] add probes --- .../1.6.17/templates/deployment.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/charts/nextcloud/1.6.17/templates/deployment.yaml b/charts/nextcloud/1.6.17/templates/deployment.yaml index 1450b4c63d..ee62904299 100644 --- a/charts/nextcloud/1.6.17/templates/deployment.yaml +++ b/charts/nextcloud/1.6.17/templates/deployment.yaml @@ -56,6 +56,39 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - name: http containerPort: 80 protocol: TCP + livenessProbe: + httpGet: + path: /status.php + port: http + httpHeaders: + - name: Host + value: localhost + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + readinessProbe: + httpGet: + path: /status.php + port: http + httpHeaders: + - name: Host + value: localhost + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + startupProbe: + httpGet: + path: /status.php + port: http + httpHeaders: + - name: Host + value: localhost + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 60 volumeMounts: - name: nextcloud-data mountPath: /var/www/