fix db for openshift

This commit is contained in:
ikhomyn 2023-04-21 14:36:41 +02:00 committed by GitHub
parent 04301422d1
commit 84a7b57059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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