22
22
## {{% heading "prerequisites" %}}
23
23
24
24
<!--
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
27
27
with v{{< skew currentVersionAddMinor -1 >}}, v{{< skew currentVersionAddMinor 0 >}},
28
28
and v{{< skew currentVersionAddMinor 1 >}} control planes.
29
29
Using the latest compatible version of kubectl helps avoid unforeseen issues.
@@ -93,7 +93,7 @@ The following methods exist for installing kubectl on Linux:
93
93
对于 Linux ARM64 来说,请输入:
94
94
95
95
``` 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
97
97
```
98
98
{{< /note >}}
99
99
@@ -230,7 +230,7 @@ Or use this for detailed view of version:
230
230
231
231
<!--
232
232
If you use Debian 9 (stretch) or earlier you would also need to install `apt-transport-https`:
233
- -->
233
+ -->
234
234
如果你使用 Debian 9(stretch)或更早版本,则你还需要安装 ` apt-transport-https ` :
235
235
236
236
``` shell
@@ -303,7 +303,7 @@ sudo yum install -y kubectl
303
303
304
304
{{< tabs name="other_kubectl_install" >}}
305
305
{{% tab name="Snap" %}}
306
- <!--
306
+ <!--
307
307
If you are on Ubuntu or another Linux distribution that supports the
308
308
[snap](https://snapcraft.io/docs/core/install) package manager, kubectl
309
309
is available as a [snap](https://snapcraft.io/) application.
@@ -320,7 +320,7 @@ kubectl version --client
320
320
{{% /tab %}}
321
321
322
322
{{% tab name="Homebrew" %}}
323
- <!--
323
+ <!--
324
324
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux)
325
325
package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install).
326
326
-->
@@ -340,7 +340,7 @@ kubectl version --client
340
340
<!--
341
341
## Verify kubectl configuration
342
342
-->
343
- ## 验证 kubectl 配置 {#verify-kubectl-configration }
343
+ ## 验证 kubectl 配置 {#verify-kubectl-configuration }
344
344
345
345
{{< include "included/verify-kubectl.md" >}}
346
346
@@ -372,7 +372,7 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
372
372
<!--
373
373
### Install `kubectl convert` plugin
374
374
-->
375
- ### 安装 ` kubectl convert ` 插件
375
+ ### 安装 ` kubectl convert ` 插件 {#install-kubectl-convert-plugin}
376
376
377
377
{{< include "included/kubectl-convert-overview.md" >}}
378
378
@@ -381,12 +381,12 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
381
381
-->
382
382
1 . 用以下命令下载最新发行版:
383
383
384
- {{< tabs name="download_binary_linux " >}}
384
+ {{< tabs name="download_convert_binary_linux " >}}
385
385
{{< tab name="x86-64" codelang="bash" >}}
386
386
curl -LO "https://dl.k8s.io/release/$ (curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert "
387
387
{{< /tab >}}
388
388
{{< 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 "
390
390
{{< /tab >}}
391
391
{{< /tabs >}}
392
392
0 commit comments