Skip to content

Commit c52cf3a

Browse files
authored
Merge pull request #36559 from Michelle951/michelle003
[zh] sync install-kubeadm.md
2 parents 35e1c28 + ed89fd1 commit c52cf3a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

content/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,11 @@ Install CNI plugins (required for most pod network):
365365
安装 CNI 插件(大多数 Pod 网络都需要):
366366

367367
```bash
368-
CNI_VERSION="v0.8.2"
368+
CNI_PLUGINS_VERSION="v1.1.1"
369369
ARCH="amd64"
370-
sudo mkdir -p /opt/cni/bin
371-
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz" | sudo tar -C /opt/cni/bin -xz
370+
DEST="/opt/cni/bin"
371+
sudo mkdir -p "$DEST"
372+
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-${ARCH}-${CNI_PLUGINS_VERSION}.tgz" | sudo tar -C "$DEST" -xz
372373
```
373374

374375
<!--
@@ -379,15 +380,15 @@ Define the directory to download command files
379380
{{< note >}}
380381
<!--
381382
The `DOWNLOAD_DIR` variable must be set to a writable directory.
382-
If you are running Flatcar Container Linux, set `DOWNLOAD_DIR=/opt/bin`.
383+
If you are running Flatcar Container Linux, set `DOWNLOAD_DIR="/opt/bin"`.
383384
-->
384385
`DOWNLOAD_DIR` 变量必须被设置为一个可写入的目录。
385-
如果你在运行 Flatcar Container Linux,可将 `DOWNLOAD_DIR` 设置为 `/opt/bin`
386+
如果你在运行 Flatcar Container Linux,可设置 `DOWNLOAD_DIR="/opt/bin"`
386387
{{< /note >}}
387388

388389
```bash
389-
DOWNLOAD_DIR=/usr/local/bin
390-
sudo mkdir -p $DOWNLOAD_DIR
390+
DOWNLOAD_DIR="/usr/local/bin"
391+
sudo mkdir -p "$DOWNLOAD_DIR"
391392
```
392393

393394
<!--
@@ -396,7 +397,7 @@ Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI)
396397
安装 crictl(kubeadm/kubelet 容器运行时接口(CRI)所需)
397398

398399
```bash
399-
CRICTL_VERSION="v1.22.0"
400+
CRICTL_VERSION="v1.25.0"
400401
ARCH="amd64"
401402
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${ARCH}.tar.gz" | sudo tar -C $DOWNLOAD_DIR -xz
402403
```

0 commit comments

Comments
 (0)