Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 5b80af8

Browse files
committed
fix: #119 Add a subpath to Keycloak postgres to avoid permission issue on OpenShift
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
1 parent 2c52256 commit 5b80af8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

k8s/keycloak-postgres-deployment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ spec:
6868
name: "{{name}}-keycloak-admin"
6969
- name: POSTGRES_DB
7070
value: root
71+
- name: PGDATA
72+
value: /var/lib/postgresql/data/pgdata
7173
volumeMounts:
7274
- name: "{{name}}-keycloak-postgresql-data"
7375
mountPath: "/var/lib/pgsql/data"
76+
subPath: pgdata
7477
volumes:
7578
- name: "{{name}}-keycloak-postgresql-data"
7679
{% if keycloak.persistent %}persistentVolumeClaim:

0 commit comments

Comments
 (0)