Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 <VIRTUAL-IP>; then
curl --silent --max-time 2 --insecure https://<VIRTUAL-IP>:6443/ -o /dev/null || errorExit "Error GET https://<VIRTUAL-IP>:6443/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment