Update install-kubectl.md
Fix leading spaces in commands.
This commit is contained in:
@@ -20,13 +20,13 @@ Here are a few methods to install kubectl.
|
|||||||
{% capture macos %}
|
{% capture macos %}
|
||||||
1. Download the latest release with the command:
|
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.
|
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:
|
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.
|
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/).
|
1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/).
|
||||||
2. Run the following command to install `kubectl`:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
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.
|
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:
|
3. Configure kubectl to use a remote Kubernetes cluster:
|
||||||
|
|
||||||
cd C:\users\yourusername (Or wherever your %HOME% directory is)
|
cd C:\users\yourusername (Or wherever your %HOME% directory is)
|
||||||
mkdir .kube
|
mkdir .kube
|
||||||
cd .kube
|
cd .kube
|
||||||
touch config
|
touch config
|
||||||
|
|
||||||
Edit the config file with a text editor of your choice, such as Notepad for example.
|
Edit the config file with a text editor of your choice, such as Notepad for example.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user