From 31e1b2beacf3aa69a399830455148ffbccdc660e Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Thu, 19 Dec 2024 15:51:28 +0000 Subject: [PATCH] HAProxy: fail if there's any config errors --- charts/matrix-stack/templates/haproxy/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/matrix-stack/templates/haproxy/deployment.yaml b/charts/matrix-stack/templates/haproxy/deployment.yaml index 7e9d4692..4cc4d8a6 100644 --- a/charts/matrix-stack/templates/haproxy/deployment.yaml +++ b/charts/matrix-stack/templates/haproxy/deployment.yaml @@ -68,6 +68,10 @@ spec: {{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "key" "haproxy" "deployment" true)) | nindent 6 }} containers: - name: haproxy + args: + - "-f" + - "/usr/local/etc/haproxy/haproxy.cfg" + - "-dW" {{- with .image -}} {{- if .digest }} image: "{{ .registry }}/{{ .repository }}@{{ .digest }}"