Merge pull request #31154 from tengqm/fix-31153
[zh] Fix markdown error
This commit is contained in:
@@ -165,18 +165,17 @@ The following methods exist for installing kubectl on Linux:
|
||||
### 用原生包管理工具安装 {#install-using-native-package-management}
|
||||
|
||||
{{< tabs name="kubectl_install" >}}
|
||||
{{< tab name="Ubuntu、Debian 或 HypriotOS" codelang="bash" >}}
|
||||
{{% tab name="Ubuntu、Debian 或 HypriotOS" %}}
|
||||
|
||||
<!--
|
||||
1. Update the `apt` package index and install packages needed to use the Kubernetes `apt` repository:
|
||||
-->
|
||||
1. 更新 `apt` 包索引,并安装使用 Kubernetes `apt` 仓库锁需要的包:
|
||||
1. 更新 `apt` 包索引,并安装使用 Kubernetes `apt` 仓库所需要的包:
|
||||
|
||||
```shell
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y apt-transport-https ca-certificates curl
|
||||
```
|
||||
|
||||
<!--
|
||||
2. Download the Google Cloud public signing key:
|
||||
-->
|
||||
@@ -204,10 +203,11 @@ The following methods exist for installing kubectl on Linux:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y kubectl
|
||||
```
|
||||
{{% /tab %}}
|
||||
|
||||
{{< /tab >}}
|
||||
{{% tab name="基于 Red Hat 的发行版" %}}
|
||||
|
||||
{{< tab name="基于 Red Hat 的发行版" codelang="bash" >}}
|
||||
```shell
|
||||
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
|
||||
[kubernetes]
|
||||
name=Kubernetes
|
||||
@@ -218,7 +218,9 @@ repo_gpgcheck=1
|
||||
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
|
||||
EOF
|
||||
sudo yum install -y kubectl
|
||||
{{< /tab >}}
|
||||
```
|
||||
|
||||
{{% /tab %}}
|
||||
{{< /tabs >}}
|
||||
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user