Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
62db510f
Commit
62db510f
authored
Dec 19, 2018
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting KUBERNETES_NODE_ARCH to download node binaries
parent
f87fcf6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
get-kube-binaries.sh
cluster/get-kube-binaries.sh
+3
-3
get-kube.sh
cluster/get-kube.sh
+9
-3
No files found.
cluster/get-kube-binaries.sh
View file @
62db510f
...
...
@@ -161,9 +161,9 @@ DOWNLOAD_URL_PREFIX="${KUBERNETES_RELEASE_URL}/${KUBE_VERSION}"
SERVER_PLATFORM
=
"linux"
SERVER_ARCH
=
"
${
KUBERNETES_SERVER_ARCH
:-
amd64
}
"
SERVER_TAR
=
"kubernetes-server-
${
SERVER_PLATFORM
}
-
${
SERVER_ARCH
}
.tar.gz"
if
[[
-n
"
${
KUBERNETES_NODE_PLATFORM
-
}
"
]]
;
then
NODE_PLATFORM
=
"
${
KUBERNETES_NODE_PLATFORM
}
"
NODE_ARCH
=
"
${
KUBERNETES_NODE_ARCH
:
-
amd64
}
"
if
[[
-n
"
${
KUBERNETES_NODE_PLATFORM
-
}
"
||
-n
"
${
KUBERNETES_NODE_ARCH
-
}
"
]]
;
then
NODE_PLATFORM
=
"
${
KUBERNETES_NODE_PLATFORM
:
${
SERVER_PLATFORM
}
}
"
NODE_ARCH
=
"
${
KUBERNETES_NODE_ARCH
:
${
SERVER_ARCH
}
}
"
NODE_TAR
=
"kubernetes-node-
${
NODE_PLATFORM
}
-
${
NODE_ARCH
}
.tar.gz"
fi
...
...
cluster/get-kube.sh
View file @
62db510f
...
...
@@ -38,12 +38,18 @@
# * arm64
#
# 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
# downloaded. The options are:
# 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.
# * linux
# * 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]
# * arm
# * arm64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment