mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 09:48:57 +03:00
19 lines
378 B
Plaintext
19 lines
378 B
Plaintext
|
|
#!/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
|