diff --git a/content/zh-cn/docs/setup/production-environment/container-runtimes.md b/content/zh-cn/docs/setup/production-environment/container-runtimes.md index 79aca92840..69f446d75b 100644 --- a/content/zh-cn/docs/setup/production-environment/container-runtimes.md +++ b/content/zh-cn/docs/setup/production-environment/container-runtimes.md @@ -99,20 +99,11 @@ For more information, see [Network Plugin Requirements](/docs/concepts/extend-ku ### 转发 IPv4 并让 iptables 看到桥接流量 -通过运行 `lsmod | grep br_netfilter` 来验证 `br_netfilter` 模块是否已加载。 - -若要显式加载此模块,请运行 `sudo modprobe br_netfilter`。 - -为了让 Linux 节点的 iptables 能够正确查看桥接流量,请确认 `sysctl` 配置中的 -`net.bridge.bridge-nf-call-iptables` 设置为 1。例如: +执行下述指令: ```bash cat < +通过运行以下指令确认 `br_netfilter` 和 `overlay` 模块被加载: + +```bash +lsmod | grep br_netfilter +lsmod | grep overlay +``` + + +通过运行以下指令确认 `net.bridge.bridge-nf-call-iptables`、`net.bridge.bridge-nf-call-ip6tables` +和 `net.ipv4.ip_forward` 系统变量在你的 `sysctl` 配置中被设置为 1: + +```bash +sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables net.ipv4.ip_forward +``` + +如果你在初次安装集群后或安装 CNI 后遇到容器崩溃循环,则随软件包提供的 containerd +配置可能包含不兼容的配置参数。考虑按照 +[getting-started.md](https://github.com/containerd/containerd/blob/main/docs/getting-started.md#advanced-topics) +中指定的 `containerd config default > /etc/containerd/config.toml` 重置 containerd +配置,然后相应地设置上述配置参数。 {{< /note >}} 以下操作假设你使用 [`cri-dockerd`](https://github.com/Mirantis/cri-dockerd) 适配器来将 Docker Engine 与 Kubernetes 集成。 -{{< /note >}} +{{< /note >}} 1. 在你的每个节点上,遵循[安装 Docker Engine](https://docs.docker.com/engine/install/#server) 指南为你的 Linux 发行版安装 Docker。 @@ -539,7 +564,8 @@ visit [MCR Deployment Guide](https://docs.mirantis.com/mcr/20.10/install.html). 请访问 [MCR 部署指南](https://docs.mirantis.com/mcr/20.10/install.html)。 检查名为 `cri-docker.socket` 的 systemd 单元以找出 CRI 套接字的路径。