X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fsetup-cni.sh;h=75fa1f23978d61f85b86a0795a0986d6bf402b2d;hb=HEAD;hp=8b9730c50518aad298fe51066368ae2ced966933;hpb=424e72ce7a22cda402692d4ec96d099ad7618254;p=iec.git diff --git a/scripts/setup-cni.sh b/scripts/setup-cni.sh deleted file mode 100755 index 8b9730c..0000000 --- a/scripts/setup-cni.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -set -o xtrace -set -e - -CLUSTER_IP=${1:-172.16.1.136} # Align with the value in our K8s setup script - -# Install the Etcd Database -if [ "$(uname -m)" == 'aarch64' ]; then - ETCD_YAML=etcd-arm64.yaml -else - ETCD_YAML=etcd-amd64.yaml -fi - -SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}") - -sed -i "s/10.96.232.136/${CLUSTER_IP}/" "${SCRIPTS_DIR}/cni/calico/${ETCD_YAML}" -kubectl apply -f "${SCRIPTS_DIR}/cni/calico/${ETCD_YAML}" - -# Install the RBAC Roles required for Calico -kubectl apply -f "${SCRIPTS_DIR}/cni/calico/rbac.yaml" - -# Install Calico to system -sed -i "s/10.96.232.136/${CLUSTER_IP}/" "${SCRIPTS_DIR}/cni/calico/calico.yaml" -kubectl apply -f "${SCRIPTS_DIR}/cni/calico/calico.yaml" - -# Remove the taints on master node -kubectl taint nodes --all node-role.kubernetes.io/master- || true