mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Allow setting KUBERNETES_NODE_ARCH to download node binaries
This commit is contained in:
parent
f87fcf6ce8
commit
62db510fe0
@ -161,9 +161,9 @@ DOWNLOAD_URL_PREFIX="${KUBERNETES_RELEASE_URL}/${KUBE_VERSION}"
|
|||||||
SERVER_PLATFORM="linux"
|
SERVER_PLATFORM="linux"
|
||||||
SERVER_ARCH="${KUBERNETES_SERVER_ARCH:-amd64}"
|
SERVER_ARCH="${KUBERNETES_SERVER_ARCH:-amd64}"
|
||||||
SERVER_TAR="kubernetes-server-${SERVER_PLATFORM}-${SERVER_ARCH}.tar.gz"
|
SERVER_TAR="kubernetes-server-${SERVER_PLATFORM}-${SERVER_ARCH}.tar.gz"
|
||||||
if [[ -n "${KUBERNETES_NODE_PLATFORM-}" ]]; then
|
if [[ -n "${KUBERNETES_NODE_PLATFORM-}" || -n "${KUBERNETES_NODE_ARCH-}" ]]; then
|
||||||
NODE_PLATFORM="${KUBERNETES_NODE_PLATFORM}"
|
NODE_PLATFORM="${KUBERNETES_NODE_PLATFORM:${SERVER_PLATFORM}}"
|
||||||
NODE_ARCH="${KUBERNETES_NODE_ARCH:-amd64}"
|
NODE_ARCH="${KUBERNETES_NODE_ARCH:${SERVER_ARCH}}"
|
||||||
NODE_TAR="kubernetes-node-${NODE_PLATFORM}-${NODE_ARCH}.tar.gz"
|
NODE_TAR="kubernetes-node-${NODE_PLATFORM}-${NODE_ARCH}.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -38,12 +38,18 @@
|
|||||||
# * arm64
|
# * arm64
|
||||||
#
|
#
|
||||||
# Set KUBERNETES_NODE_PLATFORM to choose the platform for which to download
|
# Set KUBERNETES_NODE_PLATFORM to choose the platform for which to download
|
||||||
# the node binaries. If not set (the default) no node binaries will be
|
# the node binaries. If none of KUBERNETES_NODE_PLATFORM and
|
||||||
# downloaded. The options are:
|
# KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
|
||||||
|
# one of the two is set, the other will be defaulted to the
|
||||||
|
# KUBERNETES_SERVER_PLATFORM/ARCH.
|
||||||
# * linux
|
# * linux
|
||||||
# * windows
|
# * windows
|
||||||
#
|
#
|
||||||
# Set KUBERNETES_NODE_ARCH to choose the node architecture to download:
|
# Set KUBERNETES_NODE_ARCH to choose the node architecture to download the
|
||||||
|
# node binaries. If none of KUBERNETES_NODE_PLATFORM and
|
||||||
|
# KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
|
||||||
|
# one of the two is set, the other will be defaulted to the
|
||||||
|
# KUBERNETES_SERVER_PLATFORM/ARCH.
|
||||||
# * amd64 [default]
|
# * amd64 [default]
|
||||||
# * arm
|
# * arm
|
||||||
# * arm64
|
# * arm64
|
||||||
|
Loading…
Reference in New Issue
Block a user