File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ metadata:
1616type : Opaque
1717stringData :
1818 password : openshell-e2e-postgres
19+ uri : postgresql://openshell:openshell-e2e-postgres@openshell-e2e-postgres.openshell.svc/openshell
1920---
2021apiVersion : apps/v1
2122kind : Deployment
4849 key : password
4950 - name : POSTGRES_DB
5051 value : openshell
52+ # OpenShift assigns a random UID from the namespace range instead of
53+ # running as the image's "postgres" user (UID 70). The postgres
54+ # entrypoint fails to chmod /var/lib/postgresql/data because it is
55+ # owned by UID 70. Setting PGDATA to a subdirectory causes postgres
56+ # to mkdir+chmod a new directory it owns, which succeeds.
57+ - name : PGDATA
58+ value : /var/lib/postgresql/data/pgdata
5159 ports :
5260 - name : postgres
5361 containerPort : 5432
6169 periodSeconds : 3
6270 timeoutSeconds : 2
6371 failureThreshold : 20
72+ volumeMounts :
73+ - name : postgres-data
74+ mountPath : /var/lib/postgresql/data
75+ - name : postgres-run
76+ mountPath : /var/run/postgresql
77+ volumes :
78+ - name : postgres-data
79+ emptyDir : {}
80+ - name : postgres-run
81+ emptyDir : {}
6482---
6583apiVersion : v1
6684kind : Service
You can’t perform that action at this time.
0 commit comments