mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
enable arm64 support for GCE node configuration
This commit is contained in:
parent
406d2dfe61
commit
148acc8632
@ -518,11 +518,6 @@ function install-containerd-ubuntu {
|
|||||||
# Override to latest versions of containerd and runc
|
# Override to latest versions of containerd and runc
|
||||||
systemctl stop containerd
|
systemctl stop containerd
|
||||||
if [[ -n "${UBUNTU_INSTALL_CONTAINERD_VERSION:-}" ]]; then
|
if [[ -n "${UBUNTU_INSTALL_CONTAINERD_VERSION:-}" ]]; then
|
||||||
# TODO(https://github.com/containerd/containerd/issues/2901): Remove this check once containerd has arm64 release.
|
|
||||||
if [[ $(dpkg --print-architecture) != "amd64" ]]; then
|
|
||||||
echo "Unable to automatically install containerd in non-amd64 image. Bailing out..."
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
# containerd versions have slightly different url(s), so try both
|
# containerd versions have slightly different url(s), so try both
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
( curl ${CURL_FLAGS} \
|
( curl ${CURL_FLAGS} \
|
||||||
@ -534,11 +529,6 @@ function install-containerd-ubuntu {
|
|||||||
| tar --overwrite -xzv -C /usr/
|
| tar --overwrite -xzv -C /usr/
|
||||||
fi
|
fi
|
||||||
if [[ -n "${UBUNTU_INSTALL_RUNC_VERSION:-}" ]]; then
|
if [[ -n "${UBUNTU_INSTALL_RUNC_VERSION:-}" ]]; then
|
||||||
# TODO: Remove this check once runc has arm64 release.
|
|
||||||
if [[ $(dpkg --print-architecture) != "amd64" ]]; then
|
|
||||||
echo "Unable to automatically install runc in non-amd64. Bailing out..."
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
curl ${CURL_FLAGS} \
|
curl ${CURL_FLAGS} \
|
||||||
--location \
|
--location \
|
||||||
|
Loading…
Reference in New Issue
Block a user