Skip to content

Commit dd3cfd6

Browse files
authored
Merge pull request #35580 from kinzhi/kinzhi196
[zh-cn]Update content/zh-cn/docs/tasks/tools/install-kubectl-linux.md
2 parents c3ac600 + 044fe78 commit dd3cfd6

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,11 @@ Or use this for detailed view of version:
185185
<!--
186186
If you use Debian 9 (stretch) or earlier you would also need to install `apt-transport-https`:
187187
-->
188-
{{< note >}}
189-
190188
如果你使用 Debian 9(stretch)或更早版本,则你还需要安装 `apt-transport-https`
191-
192189
```shell
193-
sudo apt-get install -y apt-transport-https
190+
sudo apt-get install -y apt-transport-https
194191
```
195192

196-
{{< /note >}}
197-
198193
<!--
199194
2. Download the Google Cloud public signing key:
200195
-->
@@ -228,8 +223,9 @@ Or use this for detailed view of version:
228223

229224
{{% /tab %}}
230225

231-
{{< tab name="基于 Red Hat 的发行版" codelang="bash" >}}
226+
{{% tab name="基于 Red Hat 的发行版" %}}
232227

228+
```bash
233229
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
234230
[kubernetes]
235231
name=Kubernetes
@@ -239,7 +235,9 @@ gpgcheck=1
239235
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
240236
EOF
241237
sudo yum install -y kubectl
242-
{{< /tab >}}
238+
```
239+
240+
{{% /tab %}}
243241
{{< /tabs >}}
244242

245243
<!--
@@ -400,4 +398,3 @@ kubectl 为 Bash、Zsh、Fish 和 PowerShell 提供自动补全功能,可以
400398
## {{% heading "whatsnext" %}}
401399

402400
{{< include "included/kubectl-whats-next.md" >}}
403-

0 commit comments

Comments
 (0)