Skip to content

Commit eca3ca1

Browse files
Random-Liuestesp
authored andcommitted
Fix for kube-up.sh and update several documments.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 95159e4 commit eca3ca1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

contrib/gce/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --
6161
tar 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

6666
echo "export PATH=${CONTAINERD_HOME}/usr/local/bin/:${CONTAINERD_HOME}/usr/local/sbin/:\$PATH" > \
6767
/etc/profile.d/containerd_env.sh

contrib/gce/env

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
910
fi
10-
version_file=$(mktemp /tmp/version.XXXX)
11-
echo "${CRI_CONTAINERD_VERSION}" > "$version_file"
1211
export KUBE_MASTER_EXTRA_METADATA="user-data=${GCE_DIR}/cloud-init/master.yaml,containerd-configure-sh=${GCE_DIR}/configure.sh,version=${version_file}"
1312
export KUBE_NODE_EXTRA_METADATA="user-data=${GCE_DIR}/cloud-init/node.yaml,containerd-configure-sh=${GCE_DIR}/configure.sh,version=${version_file}"
1413
export KUBE_CONTAINER_RUNTIME="remote"

0 commit comments

Comments
 (0)