github.com/containerd/Containerd@v1.4.13/contrib/gce/env (about) 1 #!/bin/bash 2 GCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 3 4 # TODO(random-liu): Upload release tarball to user's own GCS, and use it. We should 5 # not let all nodes of all users download tarball from cri-containerd-release. 6 version_file=${GCE_DIR}/../version 7 if [ ! -f "${version_file}" ]; then 8 echo "version file does not exist" 9 exit 1 10 fi 11 export KUBE_MASTER_EXTRA_METADATA="user-data=${GCE_DIR}/cloud-init/master.yaml,containerd-configure-sh=${GCE_DIR}/configure.sh,containerd-env=${version_file}" 12 export KUBE_NODE_EXTRA_METADATA="user-data=${GCE_DIR}/cloud-init/node.yaml,containerd-configure-sh=${GCE_DIR}/configure.sh,containerd-env=${version_file}" 13 export KUBE_CONTAINER_RUNTIME="remote" 14 export KUBE_CONTAINER_RUNTIME_ENDPOINT="unix:///run/containerd/containerd.sock" 15 export KUBE_CONTAINER_RUNTIME_NAME=containerd 16 export KUBE_LOAD_IMAGE_COMMAND="/home/containerd/usr/local/bin/ctr -n=k8s.io images import" 17 export NETWORK_PROVIDER="" 18 export NON_MASQUERADE_CIDR="0.0.0.0/0" 19 export KUBE_KUBELET_EXTRA_ARGS="--runtime-cgroups=/system.slice/containerd.service" 20 export KUBE_FEATURE_GATES="ExperimentalCriticalPodAnnotation=true,CRIContainerLogRotation=true"