From 7cfc67bd6da2aa1499e52ce41f1b2abb5380229e Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 29 Mar 2023 09:24:08 +0200 Subject: [PATCH] Add probes --- customers/base/nextcloud-deployment.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/customers/base/nextcloud-deployment.yml b/customers/base/nextcloud-deployment.yml index 114be01..c6e5414 100644 --- a/customers/base/nextcloud-deployment.yml +++ b/customers/base/nextcloud-deployment.yml @@ -37,10 +37,20 @@ spec: - name: apache-config mountPath: /etc/apache2/sites-enabled/000-default.conf subPath: 000-default.conf + readinessProbe: + tcpSocket: + port: 8080 + initialDelaySeconds: 180 + periodSeconds: 60 + livenessProbe: + tcpSocket: + port: 8080 + initialDelaySeconds: 300 + periodSeconds: 180 ports: - containerPort: 8080 name: nextcloud-http - command: ['/bin/sh', '-c', '. /etc/apache2/envvars; apache2 -k start -DFORGROUND'] + command: ['/bin/sh', '-c', '. /etc/apache2/envvars; apachectl -DFORGROUND'] initContainers: - image: docker.sunet.se/sunet/docker-jinja:latest name: init-config