[zh] Fix markdown error

This commit is contained in:
Qiming Teng
2021-12-31 11:42:45 +08:00
parent 4daa800efb
commit a59221cf89
@@ -165,18 +165,17 @@ The following methods exist for installing kubectl on Linux:
### 用原生包管理工具安装 {#install-using-native-package-management} ### 用原生包管理工具安装 {#install-using-native-package-management}
{{< tabs name="kubectl_install" >}} {{< 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. Update the `apt` package index and install packages needed to use the Kubernetes `apt` repository:
--> -->
1. 更新 `apt` 包索引,并安装使用 Kubernetes `apt` 仓库需要的包: 1. 更新 `apt` 包索引,并安装使用 Kubernetes `apt` 仓库需要的包:
```shell ```shell
sudo apt-get update sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl sudo apt-get install -y apt-transport-https ca-certificates curl
``` ```
<!-- <!--
2. Download the Google Cloud public signing key: 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 update
sudo apt-get install -y kubectl 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 cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes] [kubernetes]
name=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 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF EOF
sudo yum install -y kubectl sudo yum install -y kubectl
{{< /tab >}} ```
{{% /tab %}}
{{< /tabs >}} {{< /tabs >}}
<!-- <!--