Revert "Fixed installation issue with kube-flannel.yml" 43/11543/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 21 Jan 2022 12:55:25 +0000 (13:55 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 21 Jan 2022 12:55:31 +0000 (13:55 +0100)
This reverts commit 5a5c63fa67e23854cec3b61ce54e5bcfd15d3290.

Change-Id: Id90ffd535c69bbe3ab7140bf977fa8a1c78de9cd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_kubeadm_cluster.sh

index 28a9180..1672854 100755 (executable)
@@ -58,8 +58,7 @@ function deploy_cni_provider() {
     [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
     CNI_DIR="$(mktemp -d -q --tmpdir "flannel.XXXXXX")"
     trap 'rm -rf "${CNI_DIR}"' EXIT
-    wget --retry-on-host-error --retry-on-http-error 404,429,503 --tries=5 https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml -P $CNI_DIR
-    [ ! -f $CNI_DIR/kube-flannel.yml  && FATAL "Cannot Install Flannel because $CNI_DIR/kube-flannel.yml was not found. Maybe the file https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml is temporarily not accessible"
+    wget -q https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml -P $CNI_DIR
     kubectl apply -f $CNI_DIR
     [ $? -ne 0 ] && FATAL "Cannot Install Flannel"
     [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function