Skip to content

Commit

Permalink
en-docs: Add kubectl Installation Via Homebrew (#17928)
Browse files Browse the repository at this point in the history
  • Loading branch information
kihahu authored and k8s-ci-robot committed Dec 6, 2019
1 parent 12dadf4 commit 767f9fb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions content/en/docs/tasks/tools/install-kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,24 @@ yum install -y kubectl
{{< /tab >}}
{{< /tabs >}}
### Install using other package management
### Install with snap
If you are on Ubuntu or another Linux distribution that support [snap](https://snapcraft.io/docs/core/install) package manager, kubectl is available as a [snap](https://snapcraft.io/) application.
If you are on Ubuntu or another Linux distribution that support [snap](https://snapcraft.io/docs/core/install) package manager, kubectl is available as a [snap](https://snapcraft.io/) application.
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install).
1. Switch to the snap user and run the installation command:
{{< tabs name="other_kubectl_install" >}}
{{< tab name="Snap" codelang="bash" >}}
sudo snap install kubectl --classic
```
sudo snap install kubectl --classic
```
2. Test to ensure the version you installed is up-to-date:
kubectl version
{{< /tab >}}
{{< tab name="Homebrew" codelang="bash" >}}
brew install kubectl
```
kubectl version
```
kubectl version
{{< /tab >}}
{{< /tabs >}}
## Install kubectl on macOS
Expand Down

0 comments on commit 767f9fb

Please sign in to comment.