Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Re-enable outbound internet check #3892

Merged
merged 1 commit into from
Sep 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ else
FULL_INSTALL_REQUIRED=true
fi

function testOutboundConnection() {
retrycmd_if_failure 40 1 3 nc -vz www.google.com 443 || retrycmd_if_failure 40 1 3 nc -vz www.1688.com 443 || exit $ERR_OUTBOUND_CONN_FAIL
}

function holdWALinuxAgent() {
if [[ $OS == $UBUNTU_OS_NAME ]]; then
# make sure walinuxagent doesn't get updated in the middle of running this script
retrycmd_if_failure 20 5 30 apt-mark hold walinuxagent || exit $ERR_HOLD_WALINUXAGENT
fi
}

testOutboundConnection

if [[ ! -z "${MASTER_NODE}" ]]; then
installEtcd
fi
Expand Down