Add one-line installation for kubectl in minikube guide
This commit is contained in:
@@ -51,39 +51,37 @@ Minikube requires one of the following:
|
|||||||
* The latest [Virtualbox](https://www.virtualbox.org/wiki/Downloads).
|
* The latest [Virtualbox](https://www.virtualbox.org/wiki/Downloads).
|
||||||
* The latest version of [VMWare Fusion](https://www.vmware.com/products/fusion).
|
* The latest version of [VMWare Fusion](https://www.vmware.com/products/fusion).
|
||||||
|
|
||||||
### Installation
|
### Install `minikube`
|
||||||
|
|
||||||
See the [latest Minikube release](https://github.com/kubernetes/minikube/releases) for installation instructions.
|
See the [latest Minikube release](https://github.com/kubernetes/minikube/releases) for installation instructions.
|
||||||
|
|
||||||
### Download `kubectl`
|
### Install `kubectl`
|
||||||
|
|
||||||
You will need to download the kubectl client binary for `${K8S_VERSION}` (in this example: `{{page.version}}.0`)
|
You will need to download and install the kubectl client binary for `${K8S_VERSION}` (in this example: `{{page.version}}.0`)
|
||||||
to run commands against the cluster.
|
to run commands against the cluster.
|
||||||
|
|
||||||
Downloads:
|
```shell
|
||||||
|
# linux/amd64
|
||||||
- `linux/amd64`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/amd64/kubectl
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
- `linux/386`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/386/kubectl
|
# linux/386
|
||||||
- `linux/arm`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/arm/kubectl
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/386/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
- `linux/arm64`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/arm64/kubectl
|
# linux/arm
|
||||||
- `linux/ppc64le`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/ppc64le/kubectl
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/arm/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
- `OS X/amd64`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/darwin/amd64/kubectl
|
# linux/arm64
|
||||||
- `OS X/386`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/darwin/386/kubectl
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/arm64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
- `windows/amd64`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/windows/amd64/kubectl.exe
|
#linux/ppc64le
|
||||||
- `windows/386`: http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/windows/386/kubectl.exe
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/ppc64le/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
|
# OS X/amd64
|
||||||
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
|
# OS X/386
|
||||||
|
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/darwin/386/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
|
```
|
||||||
|
|
||||||
The generic download path is:
|
The generic download path is:
|
||||||
```
|
```
|
||||||
http://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/${GOOS}/${GOARCH}/${K8S_BINARY}
|
http://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/${GOOS}/${GOARCH}/${K8S_BINARY}
|
||||||
```
|
```
|
||||||
|
|
||||||
An example install with `linux/amd64`:
|
|
||||||
|
|
||||||
```
|
|
||||||
curl -sSL "http://storage.googleapis.com/kubernetes-release/release/{{page.version}}.0/bin/linux/amd64/kubectl" > /usr/bin/kubectl
|
|
||||||
chmod +x /usr/bin/kubectl
|
|
||||||
```
|
|
||||||
|
|
||||||
### Starting the cluster
|
### Starting the cluster
|
||||||
|
|
||||||
To start a cluster, run the command:
|
To start a cluster, run the command:
|
||||||
|
|||||||
Reference in New Issue
Block a user