From ed457101f27d3d85dbb676889e81c770bea2cf1a Mon Sep 17 00:00:00 2001 From: Yossi Boaron Date: Tue, 7 Jul 2020 16:56:31 +0300 Subject: [PATCH] Move keepalived OCP_API check script to a file --- .../baremetal/files/baremetal-keepalived-keepalived.yaml | 2 +- .../baremetal/files/baremetal-keepalived-script.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 templates/master/00-master/baremetal/files/baremetal-keepalived-script.yaml 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