Use crictl installed in kube-up.sh
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
committed by
Derek McGowan
parent
5161f663e4
commit
91f8e61bd3
@@ -133,14 +133,14 @@ else
|
||||
# Download and untar the release tar ball.
|
||||
curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${TARBALL_GCS_PATH}"
|
||||
tar xvf "${TARBALL}"
|
||||
# Use crictl installed by kube-up.sh.
|
||||
# TODO(random-liu): Create release tarball for GCE, and do not package crictl.
|
||||
rm "${CONTAINERD_HOME}/usr/local/bin/crictl"
|
||||
rm "${CONTAINERD_HOME}/etc/crictl.yaml"
|
||||
rm -f "${TARBALL}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configure containerd.
|
||||
# Copy crictl config.
|
||||
cp "${CONTAINERD_HOME}/etc/crictl.yaml" /etc
|
||||
|
||||
# Generate containerd config
|
||||
config_path="${CONTAINERD_CONFIG_PATH:-"/etc/containerd/config.toml"}"
|
||||
mkdir -p $(dirname ${config_path})
|
||||
|
||||
Reference in New Issue
Block a user