From 767f9fb0c0c6d6f4c4708a69448a9820282a5578 Mon Sep 17 00:00:00 2001 From: Samuel Kihahu Date: Fri, 6 Dec 2019 18:34:51 +0300 Subject: [PATCH] en-docs: Add kubectl Installation Via Homebrew (#17928) --- .../en/docs/tasks/tools/install-kubectl.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/content/en/docs/tasks/tools/install-kubectl.md b/content/en/docs/tasks/tools/install-kubectl.md index 1d2fbfcab3ee2..2c964f5c6ea4e 100644 --- a/content/en/docs/tasks/tools/install-kubectl.md +++ b/content/en/docs/tasks/tools/install-kubectl.md @@ -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