Skip to content

Commit 25e2a1a

Browse files
authored
Merge pull request #435 from element-hq/bbz/missing-startupProbes
Add missing startupProbes
2 parents 0c15491 + b16995c commit 25e2a1a

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

charts/matrix-stack/templates/postgres/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ spec:
6565
preStop:
6666
exec:
6767
command: ["pg_ctl", "stop", "-D", "/var/lib/postgres/data", "-w", "-t", "55", "-m", "fast"]
68+
startupProbe:
69+
exec:
70+
command: ["psql", "-w", "-U", "postgres", "-d", "postgres", "-c", "SELECT 1"]
6871
readinessProbe:
6972
exec:
7073
command: ["psql", "-w", "-U", "postgres", "-d", "postgres", "-c", "SELECT 1"]
@@ -137,6 +140,9 @@ spec:
137140
preStop:
138141
exec:
139142
command: ["pg_ctl", "stop", "-D", "/var/lib/postgres/data", "-w", "-t", "55", "-m", "fast"]
143+
startupProbe:
144+
exec:
145+
command: ["psql", "-w", "-U", "postgres", "-d", "postgres", "-c", "SELECT 1"]
140146
readinessProbe:
141147
exec:
142148
command: ["psql", "-w", "-U", "postgres", "-d", "postgres", "-c", "SELECT 1"]

charts/matrix-stack/templates/synapse/redis_deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ spec:
6666
- containerPort: 6379
6767
name: redis
6868
protocol: TCP
69+
startupProbe:
70+
tcpSocket:
71+
port: redis
6972
livenessProbe:
7073
tcpSocket:
7174
port: redis

newsfragments/435.changed.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure Synapse's Redis has a startupProbe.

newsfragments/435.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure all Postgres containers have a startupProbe.

0 commit comments

Comments
 (0)