mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-15 17:28:58 +03:00
19 lines
378 B
Bash
Executable File
19 lines
378 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 .install_kubernetes_worker_components
|
|
|
|
popd
|