Merge pull request #331 from idvoretskyi/patch-1
Updated latest Kubernetes version to be set via a variable
This commit is contained in:
@@ -14,7 +14,17 @@ Here's a diagram of what the final result will look like:
|
|||||||
|
|
||||||
1. You need to have docker installed on one machine.
|
1. You need to have docker installed on one machine.
|
||||||
2. Decide what Kubernetes version to use. Set the `${K8S_VERSION}` variable to
|
2. Decide what Kubernetes version to use. Set the `${K8S_VERSION}` variable to
|
||||||
a released version of Kubernetes >= "1.2.0"
|
a released version of Kubernetes >= "v1.2.0". If you'd like to use the actual stable version of Kubernetes, run the following:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt)
|
||||||
|
```
|
||||||
|
|
||||||
|
and for the latest available version (including unstable releases):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/latest.txt)
|
||||||
|
```
|
||||||
|
|
||||||
### Run it
|
### Run it
|
||||||
|
|
||||||
@@ -30,7 +40,7 @@ docker run \
|
|||||||
--privileged=true \
|
--privileged=true \
|
||||||
--name=kubelet \
|
--name=kubelet \
|
||||||
-d \
|
-d \
|
||||||
gcr.io/google_containers/hyperkube-amd64:v${K8S_VERSION} \
|
gcr.io/google_containers/hyperkube-amd64:${K8S_VERSION} \
|
||||||
/hyperkube kubelet \
|
/hyperkube kubelet \
|
||||||
--containerized \
|
--containerized \
|
||||||
--hostname-override="127.0.0.1" \
|
--hostname-override="127.0.0.1" \
|
||||||
@@ -63,7 +73,7 @@ variable.
|
|||||||
For example, OS X:
|
For example, OS X:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
wget http://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/darwin/amd64/kubectl
|
wget http://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/darwin/amd64/kubectl
|
||||||
chmod 755 kubectl
|
chmod 755 kubectl
|
||||||
PATH=$PATH:`pwd`
|
PATH=$PATH:`pwd`
|
||||||
```
|
```
|
||||||
@@ -71,7 +81,7 @@ PATH=$PATH:`pwd`
|
|||||||
Linux:
|
Linux:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
wget http://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl
|
wget http://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
|
||||||
chmod 755 kubectl
|
chmod 755 kubectl
|
||||||
PATH=$PATH:`pwd`
|
PATH=$PATH:`pwd`
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user