Skip to content

Commit afc930f

Browse files
authored
Merge pull request #38836 from windsonsea/conrun
[zh] sync container-runtimes.md
2 parents e334443 + a718eea commit afc930f

File tree

1 file changed

+40
-14
lines changed

1 file changed

+40
-14
lines changed

content/zh-cn/docs/setup/production-environment/container-runtimes.md

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,11 @@ For more information, see [Network Plugin Requirements](/docs/concepts/extend-ku
9999
<!--
100100
### Forwarding IPv4 and letting iptables see bridged traffic
101101
102-
Verify that the `br_netfilter` module is loaded by running `lsmod | grep br_netfilter`.
103-
104-
To load it explicitly, run `sudo modprobe br_netfilter`.
105-
106-
In order for a Linux node's iptables to correctly view bridged traffic, verify that `net.bridge.bridge-nf-call-iptables` is set to 1 in your `sysctl` config. For example:
102+
Execute the below mentioned instructions:
107103
-->
108104
### 转发 IPv4 并让 iptables 看到桥接流量
109105

110-
通过运行 `lsmod | grep br_netfilter` 来验证 `br_netfilter` 模块是否已加载。
111-
112-
若要显式加载此模块,请运行 `sudo modprobe br_netfilter`
113-
114-
为了让 Linux 节点的 iptables 能够正确查看桥接流量,请确认 `sysctl` 配置中的
115-
`net.bridge.bridge-nf-call-iptables` 设置为 1。例如:
106+
执行下述指令:
116107

117108
```bash
118109
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
@@ -134,6 +125,26 @@ EOF
134125
sudo sysctl --system
135126
```
136127

128+
<!--
129+
Verify that the `br_netfilter`, `overlay` modules are loaded by running below instructions:
130+
-->
131+
通过运行以下指令确认 `br_netfilter``overlay` 模块被加载:
132+
133+
```bash
134+
lsmod | grep br_netfilter
135+
lsmod | grep overlay
136+
```
137+
138+
<!--
139+
Verify that the `net.bridge.bridge-nf-call-iptables`, `net.bridge.bridge-nf-call-ip6tables`, `net.ipv4.ip_forward` system variables are set to 1 in your `sysctl` config by running below instruction:
140+
-->
141+
通过运行以下指令确认 `net.bridge.bridge-nf-call-iptables``net.bridge.bridge-nf-call-ip6tables`
142+
`net.ipv4.ip_forward` 系统变量在你的 `sysctl` 配置中被设置为 1:
143+
144+
```bash
145+
sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables net.ipv4.ip_forward
146+
```
147+
137148
<!--
138149
## Cgroup drivers
139150
@@ -378,6 +389,20 @@ CRI 集成插件。
378389
你需要启用 CRI 支持才能在 Kubernetes 集群中使用 containerd。
379390
要确保 `cri` 没有出现在 `/etc/containerd/config.toml` 文件中 `disabled_plugins`
380391
列表内。如果你更改了这个文件,也请记得要重启 `containerd`。
392+
393+
<!--
394+
If you experience container crash loops after the initial cluster installation or after
395+
installing a CNI, the containerd configuration provided with the package might contain
396+
incompatible configuration parameters. Consider resetting the containerd configuration
397+
with `containerd config default > /etc/containerd/config.toml` as specified in
398+
[getting-started.md](https://github.com/containerd/containerd/blob/main/docs/getting-started.md#advanced-topics)
399+
and then set the configuration parameters specified above accordingly.
400+
-->
401+
如果你在初次安装集群后或安装 CNI 后遇到容器崩溃循环,则随软件包提供的 containerd
402+
配置可能包含不兼容的配置参数。考虑按照
403+
[getting-started.md](https://github.com/containerd/containerd/blob/main/docs/getting-started.md#advanced-topics)
404+
中指定的 `containerd config default > /etc/containerd/config.toml` 重置 containerd
405+
配置,然后相应地设置上述配置参数。
381406
{{< /note >}}
382407
383408
<!--
@@ -495,11 +520,11 @@ Docker Engine with Kubernetes.
495520
-->
496521
以下操作假设你使用 [`cri-dockerd`](https://github.com/Mirantis/cri-dockerd) 适配器来将
497522
Docker Engine 与 Kubernetes 集成。
498-
{{< /note >}}
523+
{{< /note >}}
499524

500525
<!--
501526
1. On each of your nodes, install Docker for your Linux distribution as per
502-
[Install Docker Engine](https://docs.docker.com/engine/install/#server).
527+
[Install Docker Engine](https://docs.docker.com/engine/install/#server).
503528
-->
504529
1. 在你的每个节点上,遵循[安装 Docker Engine](https://docs.docker.com/engine/install/#server)
505530
指南为你的 Linux 发行版安装 Docker。
@@ -539,7 +564,8 @@ visit [MCR Deployment Guide](https://docs.mirantis.com/mcr/20.10/install.html).
539564
请访问 [MCR 部署指南](https://docs.mirantis.com/mcr/20.10/install.html)
540565

541566
<!--
542-
Check the systemd unit named `cri-docker.socket` to find out the path to the CRI socket.
567+
Check the systemd unit named `cri-docker.socket` to find out the path to the CRI
568+
socket.
543569
-->
544570
检查名为 `cri-docker.socket` 的 systemd 单元以找出 CRI 套接字的路径。
545571

0 commit comments

Comments
 (0)