From 824e1ac73b241db0f2480e6aa06facc2297be90b Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sun, 11 Mar 2018 12:00:03 +0100 Subject: [PATCH] install-kubectl: choose one installation method The previous text layout suggested that all installations had to be done, one after another. --- docs/tasks/tools/install-kubectl.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index 0c583f7372163..3f5ec318185fe 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -13,9 +13,13 @@ Use the Kubernetes command-line tool, [kubectl](/docs/user-guide/kubectl/), to d Use a version of kubectl that is the same version as your server or later. Using an older kubectl with a newer server might produce validation errors. {% endcapture %} +## Install kubectl + Here are a few methods to install kubectl. +Pick the one that suits your environment best. + {% capture steps %} -## Install kubectl binary via curl +### Install kubectl binary via curl {% capture macos %} 1. Download the latest release with the command: @@ -83,7 +87,7 @@ Here are a few methods to install kubectl. {% include tabs.md %} -## Download as part of the Google Cloud SDK +### Download as part of the Google Cloud SDK kubectl can be installed as part of the Google Cloud SDK. @@ -94,7 +98,7 @@ kubectl can be installed as part of the Google Cloud SDK. 3. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date. -## Install with snap on Ubuntu +### Install with snap on Ubuntu kubectl is available as a [snap](https://snapcraft.io/) application. @@ -104,7 +108,7 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date. -## Install with Homebrew on macOS +### Install with Homebrew on macOS 1. If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you can install with: @@ -112,7 +116,7 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date. -## Install with Powershell from PSGallery +### Install with Powershell from PSGallery 1. If you are on Windows and using [Powershell Gallery](https://www.powershellgallery.com/) package manager, you can install and update with: @@ -125,7 +129,7 @@ If no Downloadlocation is specified, kubectl will be installed in users temp Dir re-run Install-Script to update the installer re-run install-kubectl.ps1 to install latest binaries -## Install with Chocolatey on Windows +### Install with Chocolatey on Windows 1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with: