Skip to content

Commit

Permalink
modify readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGarewal committed Feb 7, 2025
1 parent 496cd1b commit ec6dcae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ objects:
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host all all localhost trust
host all all 0.0.0.0/0 md5
host all all ::/0 md5
setup.sql: |-
SET application_name="container_setup";
Expand Down Expand Up @@ -246,8 +248,7 @@ objects:
- bash
- '-c'
- >-
psql -q -d
$PG_DATABASE -c 'SELECT 1'
PGPASSWORD=$PG_PASSWORD PGHOST=localhost psql -U $PG_USER -d $PG_DATABASE -c 'SELECT 1'
initialDelaySeconds: 60
periodSeconds: 15
successThreshold: 1
Expand All @@ -271,7 +272,7 @@ objects:
name: ${REPO}-${ZONE}-${COMPONENT}-run
- mountPath: /pgconf
name: ${REPO}-${ZONE}-${COMPONENT}-setupcfg
- mountPath: /etc/postgresql/pg_hba.conf
- mountPath: /pgdata/userdata/pg_hba.conf
name: ${REPO}-${ZONE}-${COMPONENT}-config
subPath: pg_hba.conf
dnsPolicy: ClusterFirst
Expand Down

0 comments on commit ec6dcae

Please sign in to comment.