@@ -13,9 +13,13 @@ Use the Kubernetes command-line tool, [kubectl](/docs/user-guide/kubectl/), to d
13
13
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.
14
14
{% endcapture %}
15
15
16
+ ## Install kubectl
17
+
16
18
Here are a few methods to install kubectl.
19
+ Pick the one that suits your environment best.
20
+
17
21
{% capture steps %}
18
- ## Install kubectl binary via curl
22
+ ### Install kubectl binary via curl
19
23
20
24
{% capture macos %}
21
25
1 . Download the latest release with the command:
@@ -83,7 +87,7 @@ Here are a few methods to install kubectl.
83
87
84
88
{% include tabs.md %}
85
89
86
- ## Download as part of the Google Cloud SDK
90
+ ### Download as part of the Google Cloud SDK
87
91
88
92
kubectl can be installed as part of the Google Cloud SDK.
89
93
@@ -94,7 +98,7 @@ kubectl can be installed as part of the Google Cloud SDK.
94
98
95
99
3. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
96
100
97
- ## Install with snap on Ubuntu
101
+ ### Install with snap on Ubuntu
98
102
99
103
kubectl is available as a [snap](https://snapcraft.io/) application.
100
104
@@ -104,15 +108,15 @@ kubectl is available as a [snap](https://snapcraft.io/) application.
104
108
105
109
2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
106
110
107
- ## Install with Homebrew on macOS
111
+ ### Install with Homebrew on macOS
108
112
109
113
1. If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you can install with:
110
114
111
115
brew install kubectl
112
116
113
117
2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date.
114
118
115
- ## Install with Powershell from PSGallery
119
+ ### Install with Powershell from PSGallery
116
120
117
121
1. If you are on Windows and using [Powershell Gallery](https://www.powershellgallery.com/) package manager, you can install and update with:
118
122
@@ -125,7 +129,7 @@ If no Downloadlocation is specified, kubectl will be installed in users temp Dir
125
129
re-run Install-Script to update the installer
126
130
re-run install-kubectl.ps1 to install latest binaries
127
131
128
- ## Install with Chocolatey on Windows
132
+ ### Install with Chocolatey on Windows
129
133
130
134
1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with:
131
135
0 commit comments