Skip to content

Commit 6d96a78

Browse files
Merge pull request #4963 from cybertron/haproxy-init-container
OCPBUGS-51273: Don't crashloop for HAProxy init container
2 parents 7db7577 + 90907d5 commit 6d96a78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/master/00-master/on-prem/files/haproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ contents:
3737
- "/bin/bash"
3838
- "-c"
3939
- |
40-
/usr/bin/curl -o /dev/null -kLfs https://api-int.{{ .DNS.Spec.BaseDomain }}:6443/healthz
40+
while ! /usr/bin/curl -o /dev/null -kLfs https://api-int.{{ .DNS.Spec.BaseDomain }}:6443/healthz; do
41+
sleep 5
42+
done
4143
resources: {}
4244
terminationMessagePolicy: FallbackToLogsOnError
4345
volumeMounts:

0 commit comments

Comments
 (0)