You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding instructions for how to validate kubectl binaries against checksum files (Linux, MacOS, Windows)
Updating links to download from https://dl.k8s.io/
Updating Linux-specific install instructions to use install command, and
macOS-specific instructions to chown root the install to provide a trusted
kubectl.
Adding note annotation around optional download instructions
Markdown updates
* Updating numbered lists to use markdown syntax ("1." for each entry), should make it easier to add and remove list items in future
* Adding some syntax highlighting to the command snippets
Correcting "PowerShell" spelling
fixes: #25040
Signed-off-by: Nate W <[email protected]>
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.
39
+
{{< note >}}
40
+
To download a specific version, replace the `$(curl -L -s https://dl.k8s.io/release/stable.txt)` portion of the command with the specific version.
40
41
41
-
For example, to download version {{< param "fullversion" >}} on Linux, type:
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.
165
+
{{< note >}}
166
+
To download a specific version, replace the `$(curl -L -s https://dl.k8s.io/release/stable.txt)` portion of the command with the specific version.
127
167
128
168
For example, to download version {{< param "fullversion" >}} on macOS, type:
To find out the latest stable version (for example, for scripting), take a look at [https://storage.googleapis.com/kubernetes-release/release/stable.txt](https://storage.googleapis.com/kubernetes-release/release/stable.txt).
277
+
{{< note >}}
278
+
To find out the latest stable version (for example, for scripting), take a look at [https://dl.k8s.io/release/stable.txt](https://dl.k8s.io/release/stable.txt).
279
+
{{< /note >}}
204
280
205
-
2. Add the binary in to your PATH.
281
+
1. Validate the binary (optional)
206
282
207
-
3. Test to ensure the version of `kubectl` is the same as downloaded:
1. Test to ensure the version of `kubectl` is the same as downloaded:
307
+
308
+
```cmd
210
309
kubectl version --client
211
310
```
212
311
213
312
{{< note >}}
214
-
[Docker Desktop for Windows](https://docs.docker.com/docker-for-windows/#kubernetes) adds its own version of `kubectl` to PATH.
215
-
If you have installed Docker Desktop before, you may need to place your PATH entry before the one added by the Docker Desktop installer or remove the Docker Desktop's `kubectl`.
313
+
[Docker Desktop for Windows](https://docs.docker.com/docker-for-windows/#kubernetes) adds its own version of `kubectl` to `PATH`.
314
+
If you have installed Docker Desktop before, you may need to place your `PATH` entry before the one added by the Docker Desktop installer or remove the Docker Desktop's `kubectl`.
216
315
{{< /note >}}
217
316
218
-
### Install with Powershell from PSGallery
317
+
### Install with PowerShell from PSGallery
219
318
220
-
If you are on Windows and using [Powershell Gallery](https://www.powershellgallery.com/) package manager, you can install and update kubectl with Powershell.
319
+
If you are on Windows and using the [PowerShell Gallery](https://www.powershellgallery.com/) package manager, you can install and update kubectl with PowerShell.
221
320
222
321
1. Run the installation commands (making sure to specify a `DownloadLocation`):
0 commit comments