X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Finstall_kubeadm_cluster.sh;h=70f6d9daf7c6b764c0d954891b536198333ae457;hb=refs%2Fchanges%2F85%2F11785%2F3;hp=f31889cb9531b9e2fe6a330f0a8e52d0bdc3631e;hpb=5bbe38071eb82b121c374742b5454b5de4dc2c9e;p=osm%2Fdevops.git diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index f31889cb..70f6d9da 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -61,7 +61,8 @@ 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 -q https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml -P $CNI_DIR + 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" kubectl apply -f $CNI_DIR [ $? -ne 0 ] && FATAL "Cannot Install Flannel" [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function @@ -236,7 +237,7 @@ function check_for_readiness() { #removes osm deployments and services function remove_k8s_namespace() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function - kubectl delete ns $1 + kubectl delete ns $1 2>&1 >/dev/null [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function }