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:
|
containers:
|
||||||
- name: postgresql-db
|
- name: postgresql-db
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: cache-volume
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: testpassword
|
value: testpassword
|
||||||
|
@ -55,6 +58,9 @@ spec:
|
||||||
value: /data/pgdata
|
value: /data/pgdata
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: keycloak
|
value: keycloak
|
||||||
|
volumes:
|
||||||
|
- name: cache-volume
|
||||||
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
@ -17,6 +17,9 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgresql-db
|
- name: postgresql-db
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: cache-volume
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: testpassword
|
value: testpassword
|
||||||
|
@ -24,6 +27,9 @@ spec:
|
||||||
value: /data/pgdata
|
value: /data/pgdata
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: keycloak
|
value: keycloak
|
||||||
|
volumes:
|
||||||
|
- name: cache-volume
|
||||||
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
# PostgreSQL StatefulSet Service
|
# PostgreSQL StatefulSet Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
Loading…
Reference in a new issue