Skip to content

Commit 266c194

Browse files
authored
Merge pull request #42440 from rolfedh/zh-cn-replace-fullversion-bis
[zh-cn] Replace deprecated fullversion shortcode
2 parents a339509 + 9369ca3 commit 266c194

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following methods exist for installing kubectl on Windows:
4242

4343
在 Windows 系统中安装 kubectl 有如下几种方法:
4444

45-
<!--
45+
<!--
4646
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
4747
- [Install on Windows using Chocolatey, Scoop, or winget](#install-nonstandard-package-tools)
4848
-->
@@ -55,7 +55,7 @@ The following methods exist for installing kubectl on Windows:
5555
### 用 curl 在 Windows 上安装 kubectl {#install-kubectl-binary-with-curl-on-windows}
5656

5757
<!--
58-
1. Download the [latest release {{< param "fullversion" >}}](https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe).
58+
1. Download the [latest release {{< skew currentPatchVersion >}}](https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/windows/amd64/kubectl.exe).
5959
-->
6060
<!--
6161
1. Download the latest {{< skew currentVersion >}} patch release:
@@ -88,7 +88,7 @@ The following methods exist for installing kubectl on Windows:
8888
Download the `kubectl` checksum file:
8989
-->
9090
2. 验证该可执行文件(可选步骤)
91-
91+
9292
下载 `kubectl` 校验和文件:
9393

9494
```powershell
@@ -120,7 +120,7 @@ The following methods exist for installing kubectl on Windows:
120120
$(Get-FileHash -Algorithm SHA256 .\kubectl.exe).Hash -eq $(Get-Content .\kubectl.exe.sha256)
121121
```
122122
123-
<!--
123+
<!--
124124
1. Append or prepend the `kubectl` binary folder to your `PATH` environment variable.
125125
126126
1. Test to ensure the version of `kubectl` is the same as downloaded:
@@ -161,7 +161,7 @@ The following methods exist for installing kubectl on Windows:
161161
```
162162

163163
{{< note >}}
164-
<!--
164+
<!--
165165
[Docker Desktop for Windows](https://docs.docker.com/docker-for-windows/#kubernetes)
166166
adds its own version of `kubectl` to `PATH`. If you have installed Docker Desktop before,
167167
you may need to place your `PATH` entry before the one added by the Docker Desktop
@@ -204,7 +204,7 @@ installer or remove the Docker Desktop's `kubectl`.
204204
{{% /tab %}}
205205
{{< /tabs >}}
206206

207-
<!--
207+
<!--
208208
1. Test to ensure the version you installed is up-to-date:
209209
-->
210210
2. 测试一下,确保安装的是最新版本:
@@ -213,7 +213,7 @@ installer or remove the Docker Desktop's `kubectl`.
213213
kubectl version --client
214214
```
215215

216-
<!--
216+
<!--
217217
1. Navigate to your home directory:
218218
-->
219219
3. 导航到你的 home 目录:
@@ -223,7 +223,7 @@ installer or remove the Docker Desktop's `kubectl`.
223223
cd ~
224224
```
225225

226-
<!--
226+
<!--
227227
1. Create the `.kube` directory:
228228
-->
229229
4. 创建目录 `.kube`
@@ -241,7 +241,7 @@ installer or remove the Docker Desktop's `kubectl`.
241241
cd .kube
242242
```
243243

244-
<!--
244+
<!--
245245
1. Configure kubectl to use a remote Kubernetes cluster:
246246
-->
247247
6. 配置 kubectl,以接入远程的 Kubernetes 集群:
@@ -251,20 +251,20 @@ installer or remove the Docker Desktop's `kubectl`.
251251
```
252252

253253
{{< note >}}
254-
<!--
254+
<!--
255255
Edit the config file with a text editor of your choice, such as Notepad.
256256
-->
257257
编辑配置文件,你需要先选择一个文本编辑器,比如 Notepad。
258258
{{< /note >}}
259259

260-
<!--
260+
<!--
261261
## Verify kubectl configuration
262262
-->
263263
## 验证 kubectl 配置 {#verify-kubectl-configration}
264264

265265
{{< include "included/verify-kubectl.md" >}}
266266

267-
<!--
267+
<!--
268268
## Optional kubectl configurations and plugins
269269
270270
### Enable shell autocompletion
@@ -324,7 +324,7 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
324324
- Using Command Prompt to manually compare `CertUtil`'s output to the checksum file downloaded:
325325
-->
326326
- 用提示的命令对 `CertUtil` 的输出和下载的校验和文件进行手动比较。
327-
327+
328328
```cmd
329329
CertUtil -hashfile kubectl-convert.exe SHA256
330330
type kubectl-convert.exe.sha256
@@ -336,7 +336,7 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
336336
-->
337337
338338
- 使用 PowerShell `-eq` 操作使验证自动化,获得 `True` 或者 `False` 的结果:
339-
339+
340340
```powershell
341341
$($(CertUtil -hashfile .\kubectl-convert.exe SHA256)[1] -replace " ", "") -eq $(type .\kubectl-convert.exe.sha256)
342342
```

0 commit comments

Comments
 (0)