Merge pull request #36854 from AnassKartit/patch-1

Update install-kubectl-windows.md
pull/37341/head
Kubernetes Prow Robot 2022-10-17 11:13:07 -07:00 committed by GitHub
commit 4c6003344a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -29,8 +29,7 @@ The following methods exist for installing kubectl on Windows:
Or if you have `curl` installed, use this command:
```powershell
curl -LO "https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe"
```
curl.exe -LO "https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe"
{{< note >}}
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).
@ -41,7 +40,7 @@ The following methods exist for installing kubectl on Windows:
Download the `kubectl` checksum file:
```powershell
curl -LO "https://dl.k8s.io/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe.sha256"
curl.exe -LO "https://dl.k8s.io/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe.sha256"
```
Validate the `kubectl` binary against the checksum file:
@ -151,7 +150,7 @@ Below are the procedures to set up autocompletion for PowerShell.
1. Download the latest release with the command:
```powershell
curl -LO "https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe"
curl.exe -LO "https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe"
```
1. Validate the binary (optional)
@ -159,7 +158,7 @@ Below are the procedures to set up autocompletion for PowerShell.
Download the `kubectl-convert` checksum file:
```powershell
curl -LO "https://dl.k8s.io/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe.sha256"
curl.exe -LO "https://dl.k8s.io/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe.sha256"
```
Validate the `kubectl-convert` binary against the checksum file: