fix db for openshift
This commit is contained in:
parent
04301422d1
commit
84a7b57059
2 changed files with 12 additions and 0 deletions
|
@ -48,6 +48,9 @@ spec:
|
|||
containers:
|
||||
- name: postgresql-db
|
||||
image: postgres:latest
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: cache-volume
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: testpassword
|
||||
|
@ -55,6 +58,9 @@ spec:
|
|||
value: /data/pgdata
|
||||
- name: POSTGRES_DB
|
||||
value: keycloak
|
||||
volumes:
|
||||
- name: cache-volume
|
||||
emptyDir: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
|
@ -17,6 +17,9 @@ spec:
|
|||
containers:
|
||||
- name: postgresql-db
|
||||
image: postgres:latest
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: cache-volume
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: testpassword
|
||||
|
@ -24,6 +27,9 @@ spec:
|
|||
value: /data/pgdata
|
||||
- name: POSTGRES_DB
|
||||
value: keycloak
|
||||
volumes:
|
||||
- name: cache-volume
|
||||
emptyDir: {}
|
||||
---
|
||||
# PostgreSQL StatefulSet Service
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in a new issue