From 620a6c880020959683644021437c40ec3af3a2de Mon Sep 17 00:00:00 2001 From: Dan Manners Date: Wed, 18 Oct 2023 08:00:21 -0400 Subject: [PATCH] Fixing the Helm Deployment --- manifests/workloads/wikijs/values.yaml | 45 +++++++++++++------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/manifests/workloads/wikijs/values.yaml b/manifests/workloads/wikijs/values.yaml index 68f4a992..445769ab 100644 --- a/manifests/workloads/wikijs/values.yaml +++ b/manifests/workloads/wikijs/values.yaml @@ -6,6 +6,29 @@ controllers: replicas: 1 type: deployment strategy: Recreate + initContainers: + - name: init-db + image: core.harbor.homelab.danmanners.com/ghcr.io/onedr0p/postgres-initdb:14.8 + env: + - name: POSTGRES_HOST + value: "primary-rw.postgres.svc.cluster.local" + - name: POSTGRES_DB + value: wikijs + - name: POSTGRES_SUPER_PASS + secretKeyRef: + name: postgres-superuser + key: password + - name: POSTGRES_USER + secretKeyRef: + name: db-secrets + key: POSTGRES_USERNAME + - name: POSTGRES_PASS + secretKeyRef: + name: db-secrets + key: POSTGRES_PASSWORD + - name: POSTGRES_PORT + value: "5432" + containers: main: nameOverride: wikijs @@ -29,28 +52,6 @@ controllers: key: POSTGRES_PASSWORD ports: - containerPort: 3000 - initContainers: - init-db: - image: core.harbor.homelab.danmanners.com/ghcr.io/onedr0p/postgres-initdb:14.8 - env: - - name: POSTGRES_HOST - value: "primary-rw.postgres.svc.cluster.local" - - name: POSTGRES_DB - value: wikijs - - name: POSTGRES_SUPER_PASS - secretKeyRef: - name: postgres-superuser - key: password - - name: POSTGRES_USER - secretKeyRef: - name: db-secrets - key: POSTGRES_USERNAME - - name: POSTGRES_PASS - secretKeyRef: - name: db-secrets - key: POSTGRES_PASSWORD - - name: POSTGRES_PORT - value: "5432" probes: readiness: enabled: false