Merge pull request #37192 from maciejporebski/patch-1

Add Kubectl Install Instructions Using Winget
pull/37496/head
Kubernetes Prow Robot 2022-10-24 11:56:24 -07:00 committed by GitHub
commit 4b05eab8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@ Using the latest compatible version of kubectl helps avoid unforeseen issues.
The following methods exist for installing kubectl on Windows:
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
- [Install on Windows using Chocolatey or Scoop](#install-on-windows-using-chocolatey-or-scoop)
- [Install on Windows using Chocolatey, Scoop, or Winget](#install-nonstandard-package-tools)
### Install kubectl binary with curl on Windows
@ -76,9 +76,9 @@ The following methods exist for installing kubectl on Windows:
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`.
{{< /note >}}
### Install on Windows using Chocolatey or Scoop
### Install on Windows using Chocolatey, Scoop, or Winget {#install-nonstandard-package-tools}
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [Scoop](https://scoop.sh) command-line installer.
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager, [Scoop](https://scoop.sh) command-line installer, or [Winget](https://winget.run/) package manager.
{{< tabs name="kubectl_win_install" >}}
{{% tab name="choco" %}}
@ -91,6 +91,11 @@ If you have installed Docker Desktop before, you may need to place your `PATH` e
scoop install kubectl
```
{{% /tab %}}
{{% tab name="winget" %}}
```powershell
winget install -e --id Kubernetes.kubectl
```
{{% /tab %}}
{{< /tabs >}}