From 72c78a978865a1825b9fc0e6dd5218e64a3df186 Mon Sep 17 00:00:00 2001 From: Stewart-YU Date: Tue, 15 Aug 2017 14:56:06 +0800 Subject: [PATCH] Update install-kubectl.md Fix leading spaces in commands. --- docs/tasks/tools/install-kubectl.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index a2816c0aa5..567c485397 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -20,13 +20,13 @@ Here are a few methods to install kubectl. {% capture macos %} 1. Download the latest release with the command: - curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl + curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version. For example, to download version {{page.fullversion}} on MacOS, type: - curl -LO https://storage.googleapis.com/kubernetes-release/release/{{page.fullversion}}/bin/darwin/amd64/kubectl + curl -LO https://storage.googleapis.com/kubernetes-release/release/{{page.fullversion}}/bin/darwin/amd64/kubectl 2. Make the kubectl binary executable. @@ -90,7 +90,7 @@ kubectl can be installed as part of the Google Cloud SDK. 1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/). 2. Run the following command to install `kubectl`: - gcloud components install kubectl + gcloud components install kubectl 3. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date. @@ -100,7 +100,7 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 1. If you are on Ubuntu or one of other Linux distributions that support [snap](https://snapcraft.io/docs/core/install) package manager, you can install with: - sudo snap install kubectl --classic + sudo snap install kubectl --classic 2. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date. @@ -108,7 +108,7 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 1. If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you can install with: - brew install kubectl + brew install kubectl 2. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date. @@ -116,15 +116,15 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with: - choco install kubernetes-cli + choco install kubernetes-cli 2. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date. 3. Configure kubectl to use a remote Kubernetes cluster: - cd C:\users\yourusername (Or wherever your %HOME% directory is) - mkdir .kube - cd .kube - touch config + cd C:\users\yourusername (Or wherever your %HOME% directory is) + mkdir .kube + cd .kube + touch config Edit the config file with a text editor of your choice, such as Notepad for example.