Add probes

This commit is contained in:
Micke Nordin 2023-03-29 09:24:08 +02:00
parent b6c15effe4
commit 7cfc67bd6d
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -37,10 +37,20 @@ spec:
- name: apache-config - name: apache-config
mountPath: /etc/apache2/sites-enabled/000-default.conf mountPath: /etc/apache2/sites-enabled/000-default.conf
subPath: 000-default.conf subPath: 000-default.conf
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 180
periodSeconds: 60
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 300
periodSeconds: 180
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: nextcloud-http name: nextcloud-http
command: ['/bin/sh', '-c', '. /etc/apache2/envvars; apache2 -k start -DFORGROUND'] command: ['/bin/sh', '-c', '. /etc/apache2/envvars; apachectl -DFORGROUND']
initContainers: initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest - image: docker.sunet.se/sunet/docker-jinja:latest
name: init-config name: init-config