added livenessProbe to nextcloud-deployment

This commit is contained in:
bom 2021-10-22 14:53:10 +02:00
parent dd03b151c5
commit 8116a34609
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -Eeo pipefail
apt update && apt -qqy install postgresql-client > /dev/null
mkdir /var/data
install -m 0700 /tmp/install-debug.sh /usr/local/bin/

View file

@ -22,6 +22,14 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
livenessProbe:
exec:
command:
- /bin/sh
- -c
- PGPASSWORD=$POSTGRES_PASSWORD psql -h postgresql-service -U $POSTGRES_USER $POSTGRES_DB
initialDelaySeconds: 1
periodSeconds: 5
env:
- name: NEXTCLOUD_ADMIN_USER
valueFrom: