Skip to content

Commit

Permalink
Merge pull request #42268 from ydFu/install-kubectl-linux
Browse files Browse the repository at this point in the history
[zh] sync tasks\tools\install-kubectl-linux.md
  • Loading branch information
k8s-ci-robot authored Jul 31, 2023
2 parents 2692867 + a76a6f7 commit 140f0d0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions content/zh-cn/docs/tasks/tools/install-kubectl-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ card:
## {{% heading "prerequisites" %}}

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

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

Expand Down Expand Up @@ -230,7 +230,7 @@ Or use this for detailed view of version:

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

```shell
Expand Down Expand Up @@ -303,7 +303,7 @@ sudo yum install -y kubectl

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

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

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

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

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

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

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

Expand Down

0 comments on commit 140f0d0

Please sign in to comment.