Remove some hardcoded variables
This commit is contained in:
parent
b05b91a172
commit
dc120f1f1f
|
@ -74,7 +74,7 @@ deployments:
|
||||||
port: *apiPort
|
port: *apiPort
|
||||||
replicas: 3
|
replicas: 3
|
||||||
initContainer:
|
initContainer:
|
||||||
command: ['/bin/sh', '-c', 'until nc -z exam-db 5432; do sleep 1; done;']
|
command: ['/bin/sh', '-c', 'until nc -z exam-db "${EXAM_DB_SERVICE_PORT-5432}"; do sleep 1; done;']
|
||||||
# cmd: ['sh', '-c', 'until pg_isready -U username -h exam-db -p 5432; do sleep 1; done']
|
# cmd: ['sh', '-c', 'until pg_isready -U username -h exam-db -p 5432; do sleep 1; done']
|
||||||
- client:
|
- client:
|
||||||
name: *clientName
|
name: *clientName
|
||||||
|
@ -98,4 +98,4 @@ deployments:
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
storage: pv-storage
|
storage: pv-storage
|
||||||
probe:
|
probe:
|
||||||
command: ['/bin/sh', '-c', 'exec pg_isready -U "$(POSTGRES_USER)" -h 127.0.0.1 -p 5432;']
|
command: ['/bin/sh', '-c', 'exec pg_isready -U "$POSTGRES_USER" -h 127.0.0.1 -p "${EXAM_DB_SERVICE_PORT-5432}";']
|
||||||
|
|
Loading…
Reference in New Issue