File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --
6161tar xvf " ${TARBALL} "
6262
6363# Copy crictl config.
64- cp " ${CRI_CONTAINERD_HOME } /etc/crictl.yaml" /etc
64+ cp " ${CONTAINERD_HOME } /etc/crictl.yaml" /etc
6565
6666echo " export PATH=${CONTAINERD_HOME} /usr/local/bin/:${CONTAINERD_HOME} /usr/local/sbin/:\$ PATH" > \
6767 /etc/profile.d/containerd_env.sh
Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ GCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
44# TODO(random-liu): Upload release tarball to user's own GCS, and use it. We should
55# not let all nodes of all users download tarball from cri-containerd-release.
6- if [ -z " ${CRI_CONTAINERD_VERSION:- } " ]; then
7- CRI_CONTAINERD_VERSION=$( curl -f --ipv4 --retry 6 --retry-delay 3 --silent --show-error \
8- https://storage.googleapis.com/cri-containerd-release/latest)
6+ version_file=${GCE_DIR} /../version
7+ if [ ! -f " ${version_file} " ]; then
8+ echo " version file does not exist"
9+ exit 1
910fi
10- version_file=$( mktemp /tmp/version.XXXX)
11- echo " ${CRI_CONTAINERD_VERSION} " > " $version_file "
1211export KUBE_MASTER_EXTRA_METADATA=" user-data=${GCE_DIR} /cloud-init/master.yaml,containerd-configure-sh=${GCE_DIR} /configure.sh,version=${version_file} "
1312export KUBE_NODE_EXTRA_METADATA=" user-data=${GCE_DIR} /cloud-init/node.yaml,containerd-configure-sh=${GCE_DIR} /configure.sh,version=${version_file} "
1413export KUBE_CONTAINER_RUNTIME=" remote"
You can’t perform that action at this time.
0 commit comments