Merge branches 'release-1.7' and 'master' of https://github.com/kubernetes/kubernetes.github.io into release-1.7
* 'release-1.7' of https://github.com/kubernetes/kubernetes.github.io: * 'master' of https://github.com/kubernetes/kubernetes.github.io: Implement PR #3859 with tabs
This commit is contained in:
+8
-1
@@ -1580,7 +1580,14 @@ $feature-box-div-margin-bottom: 40px
|
|||||||
padding: 0px !important
|
padding: 0px !important
|
||||||
list-style: none !important
|
list-style: none !important
|
||||||
margin-bottom: 0px !important
|
margin-bottom: 0px !important
|
||||||
margin-left: 1px !important
|
margin-left: 4px !important
|
||||||
|
|
||||||
|
.ui-tabs-panel
|
||||||
|
ul li
|
||||||
|
list-style: disc !important
|
||||||
|
|
||||||
|
ol li
|
||||||
|
list-style: decimal !important
|
||||||
|
|
||||||
.ui-widget-content
|
.ui-widget-content
|
||||||
border: 0px !important
|
border: 0px !important
|
||||||
|
|||||||
@@ -21,29 +21,82 @@ Here are a few methods to install kubectl.
|
|||||||
{% capture steps %}
|
{% capture steps %}
|
||||||
## Install kubectl binary via curl
|
## Install kubectl binary via curl
|
||||||
|
|
||||||
1. Download the latest release with the command:
|
{% capture macos %}
|
||||||
|
1. Download the latest release with the command:
|
||||||
|
|
||||||
```shell
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
|
||||||
# OS X
|
|
||||||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
|
|
||||||
|
|
||||||
# Linux
|
To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version.
|
||||||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
|
||||||
|
|
||||||
# Windows
|
For example, to download version 1.4.6 on MacOS, type:
|
||||||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/windows/amd64/kubectl.exe
|
|
||||||
```
|
|
||||||
To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version. For example, to download version 1.4.6 on MacOS, type:
|
|
||||||
`curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.4.6/bin/darwin/amd64/kubectl`
|
|
||||||
|
|
||||||
2. Make the kubectl binary executable.
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.4.6/bin/darwin/amd64/kubectl
|
||||||
```shell
|
|
||||||
chmod +x ./kubectl
|
2. Make the kubectl binary executable.
|
||||||
```
|
|
||||||
3. Move the binary in to your PATH.
|
```
|
||||||
```shell
|
chmod +x ./kubectl
|
||||||
sudo mv ./kubectl /usr/local/bin/kubectl
|
```
|
||||||
```
|
|
||||||
|
3. Move the binary in to your PATH.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
```
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
|
{% capture linux %}
|
||||||
|
1. Download the latest release with the command:
|
||||||
|
|
||||||
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
||||||
|
|
||||||
|
To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version.
|
||||||
|
|
||||||
|
For example, to download version {{page.fullversion}} on Linux, type:
|
||||||
|
|
||||||
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/{{page.fullversion}}/bin/linux/amd64/kubectl
|
||||||
|
|
||||||
|
2. Make the kubectl binary executable.
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod +x ./kubectl
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Move the binary in to your PATH.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
```
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
|
{% capture win %}
|
||||||
|
1. Download the latest release with the command:
|
||||||
|
|
||||||
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/windows/amd64/kubectl.exe
|
||||||
|
|
||||||
|
To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version.
|
||||||
|
|
||||||
|
For example, to download version {{page.fullversion}} on Windows, type:
|
||||||
|
|
||||||
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/{{page.fullversion}}/bin/windows/amd64/kubectl.exe
|
||||||
|
|
||||||
|
2. Make the kubectl binary executable.
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod +x ./kubectl
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Move the binary in to your PATH.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
```
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
|
{% assign tab_names = "macOS,Linux,Windows" | split: ',' | compact %}
|
||||||
|
{% assign tab_contents = site.emptyArray | push: macos | push: linux | push: win %}
|
||||||
|
|
||||||
|
{% include tabs.md %}
|
||||||
|
|
||||||
## Download as part of the Google Cloud SDK
|
## Download as part of the Google Cloud SDK
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user