Add some work on loadbalancer

This commit is contained in:
Adrien Reslinger 2019-07-19 09:06:44 +02:00
parent 507bdfca63
commit b2e96c59da
3 changed files with 47 additions and 2 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
errorExit() {
echo "*** $*" 1>&2
exit 1
}
curl --silent --max-time 2 --insecure https://localhost:6443/ -o /dev/null || errorExit "Error GET https://localhost:6443/"
if ip addr | grep -q {{ lbip_kubeapiserver }}; then
curl --silent --max-time 2 --insecure https://{{ lbip_kubeapiserver }}:6443/ -o /dev/null || errorExit "Error GET https://{{ lbip_kubeapiserver }}:6443/"
fi