19 lines
379 B
Bash
Executable File
19 lines
379 B
Bash
Executable File
#!/usr/bin/env bash
|
|
K8S_RELEASE_VERSION=$1
|
|
|
|
pushd /tmp
|
|
|
|
container_id=$(docker create gcr.io/google-containers/hyperkube:$K8S_RELEASE_VERSION)
|
|
docker cp $container_id:/hyperkube
|
|
docker rm -f $container_id
|
|
|
|
chmod u+x hyperkube
|
|
cp hyperkube /usr/bin/kubelet
|
|
cp hyperkube /usr/bin/proxy
|
|
cp hyperkube /usr/bin/kubectl
|
|
rm hyperkube
|
|
|
|
touch .download_kubernetes_worker_components
|
|
|
|
popd
|