Skip to content

Commit 0f75841

Browse files
authored
Merge pull request #437 from element-hq/bbz/haproxy-startupProbe
HAProxy startupProbe and named ports
2 parents 1434590 + 70795a5 commit 0f75841

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

charts/matrix-stack/templates/haproxy/deployment.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,27 @@ spec:
111111
name: synapse-ready
112112
protocol: TCP
113113
{{- end }}
114-
{{- if $.Values.synapse.enabled }}
115114
startupProbe:
116115
httpGet:
116+
{{- if $.Values.synapse.enabled }}
117117
path: /synapse_ready
118-
port: 8406
118+
port: synapse-ready
119+
{{- else }}
120+
path: /haproxy_test
121+
port: haproxy-metrics
122+
{{- end }}
119123
periodSeconds: 2
120124
failureThreshold: 150
121-
{{- end }}
122125
livenessProbe:
123126
httpGet:
124127
path: /haproxy_test
125-
port: 8405
128+
port: haproxy-metrics
126129
initialDelaySeconds: 10
127130
timeoutSeconds: 5
128131
readinessProbe:
129132
httpGet:
130133
path: /haproxy_test
131-
port: 8405
134+
port: haproxy-metrics
132135
initialDelaySeconds: 20
133136
timeoutSeconds: 5
134137
{{- with .resources }}

newsfragments/437.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure HAProxy has a startupProbe when Synapse isn't enabled.

0 commit comments

Comments
 (0)