also run initcontainer on SCALE for authelia

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-01 18:08:17 +02:00
parent 5130552b88
commit ca698ffee5
2 changed files with 17 additions and 1 deletions

View File

@@ -38,4 +38,4 @@ sources:
- https://github.com/authelia/chartrepo
- https://github.com/authelia/authelia
type: application
version: 1.6.14
version: 1.6.15

View File

@@ -14,6 +14,22 @@ enableServiceLinks: false
command: ["authelia"]
args: ["--config=/configuration.yaml"]
initContainers:
- name: init-postgresdb
image: postgres:13.1
command:
- "sh"
- "-c"
- "until pg_isready -U authelia -h ${pghost} ; do sleep 2 ; done"
imagePullPolicy: IfNotPresent
env:
- name: pghost
valueFrom:
secretKeyRef:
name: dbcreds
key: plainhost
# Enabled postgres
postgresql:
enabled: true