mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Install client tools on master.
We now include kubecfg and kubectl in "server binary" tar and place them into /usr/local/bin on the master.
This commit is contained in:
parent
b0253c88eb
commit
a839599883
@ -515,6 +515,10 @@ function kube::release::package_server_tarballs() {
|
||||
cp "${KUBE_SERVER_BINARIES[@]/#/${LOCAL_OUTPUT_BINPATH}/${platform}/}" \
|
||||
"${release_stage}/server/bin/"
|
||||
|
||||
# Include the client binaries here too as they are useful debugging tools.
|
||||
cp "${KUBE_CLIENT_BINARIES[@]/#/${LOCAL_OUTPUT_BINPATH}/${platform}/}" \
|
||||
"${release_stage}/server/bin/"
|
||||
|
||||
local package_name="${RELEASE_DIR}/kubernetes-server-${platform_tag}.tar.gz"
|
||||
kube::release::create_tarball "${package_name}" "${release_stage}/.."
|
||||
done
|
||||
|
13
cluster/saltbase/salt/kube-client-tools.sls
Normal file
13
cluster/saltbase/salt/kube-client-tools.sls
Normal file
@ -0,0 +1,13 @@
|
||||
/usr/local/bin/kubecfg:
|
||||
file.managed:
|
||||
- source: salt://kube-bins/kubecfg
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 755
|
||||
|
||||
/usr/local/bin/kubectl:
|
||||
file.managed:
|
||||
- source: salt://kube-bins/kubectl
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 755
|
@ -31,6 +31,7 @@ base:
|
||||
- controller-manager
|
||||
- scheduler
|
||||
- nginx
|
||||
- kube-client-tools
|
||||
- logrotate
|
||||
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
|
||||
- openvpn
|
||||
|
Loading…
Reference in New Issue
Block a user