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:
Joe Beda 2014-11-07 16:49:32 -08:00
parent b0253c88eb
commit a839599883
3 changed files with 18 additions and 0 deletions

View File

@ -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

View 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

View File

@ -31,6 +31,7 @@ base:
- controller-manager
- scheduler
- nginx
- kube-client-tools
- logrotate
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
- openvpn