Skip to content

Commit f4b39ae

Browse files
committed
[zh] sync install-kubectl-windows.md
1 parent 453dd71 commit f4b39ae

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

content/zh-cn/docs/tasks/tools/install-kubectl-windows.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ The following methods exist for installing kubectl on Windows:
3838
## 在 Windows 上安装 kubectl {#install-kubectl-on-windows}
3939

4040
在 Windows 系统中安装 kubectl 有如下几种方法:
41+
4142
<!--
4243
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
43-
- [Install on Windows using Chocolatey or Scoop](#install-on-windows-using-chocolatey-or-scoop)
44+
- [Install on Windows using Chocolatey, Scoop, or Winget](#install-nonstandard-package-tools)
4445
-->
4546
- [用 curl 在 Windows 上安装 kubectl](#install-kubectl-binary-with-curl-on-windows)
46-
- [在 Windows 上用 Chocolatey 或 Scoop 安装](#install-on-windows-using-chocolatey-or-scoop)
47+
- [在 Windows 上用 Chocolatey、ScoopWinget 安装](#install-nonstandard-package-tools)
4748

4849
<!--
4950
### Install kubectl binary with curl on Windows
@@ -140,15 +141,15 @@ If you have installed Docker Desktop before, you may need to place your `PATH` e
140141
{{< /note >}}
141142

142143
<!--
143-
### Install on Windows using Chocolatey or Scoop
144+
### Install on Windows using Chocolatey, Scoop, or Winget {#install-nonstandard-package-tools}
144145
-->
145-
### 在 Windows 上用 Chocolatey 或 Scoop 安装 {#install-on-windows-using-chocolatey-or-scoop}
146+
### 在 Windows 上用 Chocolatey、ScoopWinget 安装 {#install-nonstandard-package-tools}
146147

147148
<!--
148-
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [Scoop](https://scoop.sh) command-line installer.
149+
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.
149150
-->
150-
1. 要在 Windows 上安装 kubectl,你可以使用包管理器 [Chocolatey](https://chocolatey.org)
151-
或是命令行安装器 [Scoop](https://scoop.sh)
151+
1. 要在 Windows 上安装 kubectl,你可以使用包管理器 [Chocolatey](https://chocolatey.org)
152+
命令行安装器 [Scoop](https://scoop.sh) 或包管理器 [Winget](https://winget.run/)
152153

153154
{{< tabs name="kubectl_win_install" >}}
154155
{{% tab name="choco" %}}
@@ -161,6 +162,11 @@ If you have installed Docker Desktop before, you may need to place your `PATH` e
161162
scoop install kubectl
162163
```
163164
{{% /tab %}}
165+
{{% tab name="winget" %}}
166+
```powershell
167+
winget install -e --id Kubernetes.kubectl
168+
```
169+
{{% /tab %}}
164170
{{< /tabs >}}
165171

166172
<!--
@@ -265,7 +271,7 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
265271
2. 验证该可执行文件(可选步骤)
266272

267273
<!--
268-
Download the `kubectl-convert` checksum file:
274+
Download the `kubectl-convert` checksum file:
269275
-->
270276
下载 `kubectl-convert` 校验和文件:
271277

0 commit comments

Comments
 (0)