Skip to content

Commit

Permalink
fix: #119 Add a subpath to Keycloak postgres to avoid permission issu…
Browse files Browse the repository at this point in the history
…e on OpenShift

Signed-off-by: Laurent Broudoux <[email protected]>
  • Loading branch information
lbroudoux committed Aug 18, 2024
1 parent 2c52256 commit 5b80af8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions k8s/keycloak-postgres-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5b80af8

Please sign in to comment.