Skip to content

Commit 140f0d0

Browse files
authored
Merge pull request #42268 from ydFu/install-kubectl-linux
[zh] sync tasks\tools\install-kubectl-linux.md
2 parents 2692867 + a76a6f7 commit 140f0d0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ card:
2222
## {{% heading "prerequisites" %}}
2323

2424
<!--
25-
You must use a kubectl version that is within one minor version difference of your cluster.
26-
For example, a v{{< skew currentVersion >}} client can communicate
25+
You must use a kubectl version that is within one minor version difference of
26+
your cluster. For example, a v{{< skew currentVersion >}} client can communicate
2727
with v{{< skew currentVersionAddMinor -1 >}}, v{{< skew currentVersionAddMinor 0 >}},
2828
and v{{< skew currentVersionAddMinor 1 >}} control planes.
2929
Using the latest compatible version of kubectl helps avoid unforeseen issues.
@@ -93,7 +93,7 @@ The following methods exist for installing kubectl on Linux:
9393
对于 Linux ARM64 来说,请输入:
9494

9595
```bash
96-
curl -LO https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/linux/arm64/kubectl
96+
curl -LO https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/linux/arm64/kubectl
9797
```
9898
{{< /note >}}
9999

@@ -230,7 +230,7 @@ Or use this for detailed view of version:
230230

231231
<!--
232232
If you use Debian 9 (stretch) or earlier you would also need to install `apt-transport-https`:
233-
-->
233+
-->
234234
如果你使用 Debian 9(stretch)或更早版本,则你还需要安装 `apt-transport-https`
235235

236236
```shell
@@ -303,7 +303,7 @@ sudo yum install -y kubectl
303303

304304
{{< tabs name="other_kubectl_install" >}}
305305
{{% tab name="Snap" %}}
306-
<!--
306+
<!--
307307
If you are on Ubuntu or another Linux distribution that supports the
308308
[snap](https://snapcraft.io/docs/core/install) package manager, kubectl
309309
is available as a [snap](https://snapcraft.io/) application.
@@ -320,7 +320,7 @@ kubectl version --client
320320
{{% /tab %}}
321321

322322
{{% tab name="Homebrew" %}}
323-
<!--
323+
<!--
324324
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux)
325325
package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install).
326326
-->
@@ -340,7 +340,7 @@ kubectl version --client
340340
<!--
341341
## Verify kubectl configuration
342342
-->
343-
## 验证 kubectl 配置 {#verify-kubectl-configration}
343+
## 验证 kubectl 配置 {#verify-kubectl-configuration}
344344

345345
{{< include "included/verify-kubectl.md" >}}
346346

@@ -372,7 +372,7 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
372372
<!--
373373
### Install `kubectl convert` plugin
374374
-->
375-
### 安装 `kubectl convert` 插件
375+
### 安装 `kubectl convert` 插件 {#install-kubectl-convert-plugin}
376376

377377
{{< include "included/kubectl-convert-overview.md" >}}
378378

@@ -381,12 +381,12 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
381381
-->
382382
1. 用以下命令下载最新发行版:
383383

384-
{{< tabs name="download_binary_linux" >}}
384+
{{< tabs name="download_convert_binary_linux" >}}
385385
{{< tab name="x86-64" codelang="bash" >}}
386386
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert"
387387
{{< /tab >}}
388388
{{< tab name="ARM64" codelang="bash" >}}
389-
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
389+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl-convert"
390390
{{< /tab >}}
391391
{{< /tabs >}}
392392

0 commit comments

Comments
 (0)