Skip to content

Commit 8572616

Browse files
rilligk8s-ci-robot
authored andcommitted
install-kubectl: choose one installation method (#7705)
The previous text layout suggested that all installations had to be done, one after another.
1 parent 9b4b0ad commit 8572616

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/tasks/tools/install-kubectl.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ Use the Kubernetes command-line tool, [kubectl](/docs/user-guide/kubectl/), to d
1313
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.
1414
{% endcapture %}
1515

16+
## Install kubectl
17+
1618
Here are a few methods to install kubectl.
19+
Pick the one that suits your environment best.
20+
1721
{% capture steps %}
18-
## Install kubectl binary via curl
22+
### Install kubectl binary via curl
1923

2024
{% capture macos %}
2125
1. Download the latest release with the command:
@@ -83,7 +87,7 @@ Here are a few methods to install kubectl.
8387
8488
{% include tabs.md %}
8589
86-
## Download as part of the Google Cloud SDK
90+
### Download as part of the Google Cloud SDK
8791
8892
kubectl can be installed as part of the Google Cloud SDK.
8993
@@ -94,7 +98,7 @@ kubectl can be installed as part of the Google Cloud SDK.
9498
9599
3. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
96100
97-
## Install with snap on Ubuntu
101+
### Install with snap on Ubuntu
98102
99103
kubectl is available as a [snap](https://snapcraft.io/) application.
100104
@@ -104,15 +108,15 @@ kubectl is available as a [snap](https://snapcraft.io/) application.
104108
105109
2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
106110
107-
## Install with Homebrew on macOS
111+
### Install with Homebrew on macOS
108112
109113
1. If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you can install with:
110114
111115
brew install kubectl
112116
113117
2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
114118
115-
## Install with Powershell from PSGallery
119+
### Install with Powershell from PSGallery
116120
117121
1. If you are on Windows and using [Powershell Gallery](https://www.powershellgallery.com/) package manager, you can install and update with:
118122
@@ -125,7 +129,7 @@ If no Downloadlocation is specified, kubectl will be installed in users temp Dir
125129
re-run Install-Script to update the installer
126130
re-run install-kubectl.ps1 to install latest binaries
127131
128-
## Install with Chocolatey on Windows
132+
### Install with Chocolatey on Windows
129133
130134
1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with:
131135

0 commit comments

Comments
 (0)