Skip to content

Commit ec5bb93

Browse files
committed
fix: use variable for pod readiness and liveness probe script
1 parent ca71755 commit ec5bb93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

controllers/spec/template/yaml/PrimaryStatefulSetTemplate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
command:
6969
- sh
7070
- -c
71-
- exec pg_isready -U postgres -h $POD_IP
71+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
7272
failureThreshold: 10
7373
initialDelaySeconds: 60
7474
periodSeconds: 20
@@ -80,7 +80,7 @@ spec:
8080
command:
8181
- sh
8282
- -c
83-
- exec pg_isready -U postgres -h $POD_IP
83+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
8484
failureThreshold: 3
8585
initialDelaySeconds: 5
8686
periodSeconds: 10

controllers/spec/template/yaml/ReplicaStatefulSetTemplate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
command:
9191
- sh
9292
- -c
93-
- exec pg_isready -U postgres -h $POD_IP
93+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
9494
failureThreshold: 10
9595
initialDelaySeconds: 60
9696
periodSeconds: 20
@@ -102,7 +102,7 @@ spec:
102102
command:
103103
- sh
104104
- -c
105-
- exec pg_isready -U postgres -h $POD_IP
105+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
106106
failureThreshold: 3
107107
initialDelaySeconds: 5
108108
periodSeconds: 10

0 commit comments

Comments
 (0)