Skip to main content

calico(tigera-operator)

ben.wangzLess than 1 minute

calico(tigera-operator)

prepare

  1. k8s is ready
  2. helm binary
    • MIRROR="files."
      VERSION=v3.13.3
      ARCH=$(uname -m)
      if [ "${ARCH}" = "x86_64" ]; then
          ARCH_IN_FILE_NAME=linux-amd64
      elif [ "${ARCH}" = "aarch64" ]; then
          ARCH_IN_FILE_NAME=linux-arm64
      else
          echo "NOT SUPPORT: ${ARCH}"
      fi
      FILE_NAME=helm-${VERSION}-${ARCH_IN_FILE_NAME}.tar.gz
      curl -sSLo ${FILE_NAME} "https://${MIRROR}get.helm.sh/${FILE_NAME}"
      tar zxf ${FILE_NAME}
      mkdir -p ${HOME}/bin
      mv -f ${ARCH_IN_FILE_NAME}/helm ${HOME}/bin
      rm -rf ./${FILE_NAME}
      rm -rf ./${ARCH_IN_FILE_NAME}
      chmod u+x ${HOME}/bin/helm
      
      

install

  1. install with helm
    • helm install \
          --create-namespace --namespace tigera-operator \
          tigera-operator tigera-operator \
          --repo https://ben-wangz.github.io/helm-chart-mirror/charts \
          --version v3.27.0 \
          --set tigeraOperator.registry= \
          --set calicoctl.image=docker.io/calico/ctl \
          --atomic