diff --git a/templates/master/00-master/baremetal/files/baremetal-keepalived-keepalived.yaml b/templates/master/00-master/baremetal/files/baremetal-keepalived-keepalived.yaml index 1b62f885c8..60b14f3ab6 100644 --- a/templates/master/00-master/baremetal/files/baremetal-keepalived-keepalived.yaml +++ b/templates/master/00-master/baremetal/files/baremetal-keepalived-keepalived.yaml @@ -3,7 +3,7 @@ path: "/etc/kubernetes/static-pod-resources/keepalived/keepalived.conf.tmpl" contents: inline: | vrrp_script chk_ocp { - script "/usr/bin/curl -o /dev/null -kLfs https://localhost:6443/readyz && /usr/bin/curl -o /dev/null -Lfs http://localhost:50936/readyz" + script "/etc/keepalived/chk_ocp_script.sh" interval 1 weight 50 } diff --git a/templates/master/00-master/baremetal/files/baremetal-keepalived-script.yaml b/templates/master/00-master/baremetal/files/baremetal-keepalived-script.yaml new file mode 100644 index 0000000000..ac57a01e59 --- /dev/null +++ b/templates/master/00-master/baremetal/files/baremetal-keepalived-script.yaml @@ -0,0 +1,6 @@ +mode: 0755 +path: "/etc/keepalived/chk_ocp_script.sh" +contents: + inline: | + #!/bin/bash + /usr/bin/curl -o /dev/null -kLfs https://localhost:6443/readyz && /usr/bin/curl -o /dev/null -Lfs http://localhost:50936/readyz