From 5b80af8f9784de0a6bbc60c808885281c46bc327 Mon Sep 17 00:00:00 2001 From: Laurent Broudoux Date: Sun, 18 Aug 2024 13:16:22 +0200 Subject: [PATCH] fix: #119 Add a subpath to Keycloak postgres to avoid permission issue on OpenShift Signed-off-by: Laurent Broudoux --- k8s/keycloak-postgres-deployment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/k8s/keycloak-postgres-deployment.yml b/k8s/keycloak-postgres-deployment.yml index 306a10f..7c48ebb 100644 --- a/k8s/keycloak-postgres-deployment.yml +++ b/k8s/keycloak-postgres-deployment.yml @@ -68,9 +68,12 @@ spec: name: "{{name}}-keycloak-admin" - name: POSTGRES_DB value: root + - name: PGDATA + value: /var/lib/postgresql/data/pgdata volumeMounts: - name: "{{name}}-keycloak-postgresql-data" mountPath: "/var/lib/pgsql/data" + subPath: pgdata volumes: - name: "{{name}}-keycloak-postgresql-data" {% if keycloak.persistent %}persistentVolumeClaim: