From 9e20c67dafd4be47ec461a392b3d8812d2930c2c Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 4 Apr 2017 22:07:57 -0700 Subject: [PATCH] Remove kubectl installation instructions from release .tar.gz Kubernetes release .tar.gz no longer provides binaries. So the existing instructions are invalid (#2815). User has to get the .tar.gz file and then run a script, only to download them from storage.googleapis.com/kubernetes-release. That's already what's documented in the "install via curl" section. Therefore deleting "Extract kubectl from Release .tar.gz" section. Signed-off-by: Ahmet Alp Balkan --- docs/tasks/kubectl/install.md | 42 ++++------------------------------- 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/docs/tasks/kubectl/install.md b/docs/tasks/kubectl/install.md index 9c24bff0d2..eb5831468e 100644 --- a/docs/tasks/kubectl/install.md +++ b/docs/tasks/kubectl/install.md @@ -19,7 +19,7 @@ older kubectl with a newer server you may see odd validation errors. Here are a few methods to install kubectl. -## Install kubectl Binary Via curl +## Install kubectl binary via curl Download the latest release with the command: @@ -43,40 +43,6 @@ chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl ``` -## Extract kubectl from Release .tar.gz or Compiled Source - -If you downloaded a pre-compiled [release](https://github.com/kubernetes/kubernetes/releases), kubectl will be under `platforms//` from the tar bundle. - -If you compiled Kubernetes from source, kubectl should be either under `_output/local/bin//` or `_output/dockerized/bin//`. - -Copy or move kubectl into a directory already in your PATH (e.g. `/usr/local/bin`). For example: - -```shell -# OS X -sudo cp platforms/darwin/amd64/kubectl /usr/local/bin/kubectl - -# Linux -sudo cp platforms/linux/amd64/kubectl /usr/local/bin/kubectl -``` - -Next make it executable with the following command: - -```shell -sudo chmod +x /usr/local/bin/kubectl -``` - -The kubectl binary doesn't have to be installed to be executable, but the rest of the walkthrough will assume that it's in your PATH. - -If you prefer not to copy kubectl, you need to ensure it is in your path: - -```shell -# OS X -export PATH=/platforms/darwin/amd64:$PATH - -# Linux -export PATH=/platforms/linux/amd64:$PATH -``` - ## Download as part of the Google Cloud SDK kubectl can be installed as part of the Google Cloud SDK: @@ -89,11 +55,11 @@ After Google Cloud SDK installs, run the following command to install `kubectl`: gcloud components install kubectl ``` -Do check that the version is sufficiently up-to-date using `kubectl version`. +Check that the version is sufficiently up-to-date using `kubectl version`. -## Install with brew +## Install with Homebrew on macOS -If you are on MacOS and using brew, you can install with: +If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you can install with: ```shell brew install kubectl