diff --git a/init.sh b/init.sh index d6d95ec..e2d8188 100644 --- a/init.sh +++ b/init.sh @@ -47,6 +47,7 @@ config_keepalived() { KUBE_APISERVER_CHK_FALL=${KUBE_APISERVER_CHK_FALL:-'10'} KUBE_APISERVER_CHK_RISE=${KUBE_APISERVER_CHK_RISE:-'2'} CHECK_SCRIPT_PATH=${CHECK_SCRIPT_PATH:-'/usr/lib/keepalived/scripts/chk_kube_apiserver.sh'} + chmod +x $CHECK_SCRIPT_PATH { echo 'vrrp_script chk_kube_apiserver {' echo " script \"$CHECK_SCRIPT_PATH $KUBE_APISERVER_ADDRESS $KUBE_APISERVER_PORT\""