Updated stable and latest Kubernetes versions to be set via a variable
Added method to set a Kubernetes variable to the latest and actual versions. Updated command with added variable. Following the https://github.com/kubernetes/kubernetes.github.io/pull/43
This commit is contained in:
@@ -14,10 +14,16 @@ 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 >= "v1.2.0". If you'd like to use the latest released version of Kubernetes, run the following:
|
a released version of Kubernetes >= "v1.2.0". If you'd like to use the actual stable version of Kubernetes, run the following:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt)
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user