en-docs: Add kubectl Installation Via Homebrew (#17928)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
12dadf46ee
commit
767f9fb0c0
@@ -78,22 +78,24 @@ yum install -y kubectl
|
|||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
{{< /tabs >}}
|
{{< /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
|
||||||
|
|
||||||
```
|
kubectl version
|
||||||
sudo snap install kubectl --classic
|
{{< /tab >}}
|
||||||
```
|
{{< tab name="Homebrew" codelang="bash" >}}
|
||||||
|
brew install kubectl
|
||||||
|
|
||||||
2. Test to ensure the version you installed is up-to-date:
|
kubectl version
|
||||||
|
{{< /tab >}}
|
||||||
```
|
{{< /tabs >}}
|
||||||
kubectl version
|
|
||||||
```
|
|
||||||
|
|
||||||
## Install kubectl on macOS
|
## Install kubectl on macOS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user