diff --git a/templates/master/00-master/on-prem/files/haproxy.yaml b/templates/master/00-master/on-prem/files/haproxy.yaml index 5a56ff13b1..dc5520ac7c 100644 --- a/templates/master/00-master/on-prem/files/haproxy.yaml +++ b/templates/master/00-master/on-prem/files/haproxy.yaml @@ -37,7 +37,9 @@ contents: - "/bin/bash" - "-c" - | - /usr/bin/curl -o /dev/null -kLfs https://api-int.{{ .DNS.Spec.BaseDomain }}:6443/healthz + while ! /usr/bin/curl -o /dev/null -kLfs https://api-int.{{ .DNS.Spec.BaseDomain }}:6443/healthz; do + sleep 5 + done resources: {} terminationMessagePolicy: FallbackToLogsOnError volumeMounts: