From bb9e4e11a4d402d0814a0b62fb30f03cd2c00c1e Mon Sep 17 00:00:00 2001 From: jiajie Date: Fri, 3 Jul 2020 10:05:53 +0800 Subject: [PATCH] Update network-plugins.md update zh-trans to match master branch, the orig seems to be based on release-1.14 Update network-plugins.md Update network-plugins.md --- .../compute-storage-net/network-plugins.md | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/content/zh/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md b/content/zh/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md index a6fe50363a..7ad8153077 100644 --- a/content/zh/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md +++ b/content/zh/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md @@ -14,9 +14,9 @@ weight: 10 {{< feature-state state="alpha" >}} -{{< warning >}}Alpha 特性迅速变化。{{< /warning >}} +{{< caution >}}Alpha 特性可能很快会变化。{{< /caution >}} @@ -81,7 +81,7 @@ In addition to the CNI plugin specified by the configuration file, Kubernetes re Kubelet 从 `--cni-conf-dir` (默认是 `/etc/cni/net.d`) 读取文件并使用该文件中的 CNI 配置来设置每个 pod 的网络。 CNI 配置文件必须与 [CNI 规约](https://github.com/containernetworking/cni/blob/master/SPEC.md#network-configuration)匹配,并且配置引用的任何所需的 CNI 插件都必须存在于 `--cni-bin-dir`(默认是 `/opt/cni/bin`)。 -如果这个目录中有多个 CNI 配置文件,则使用按文件名的字典顺序排列的第一个配置文件。 +如果这个目录中有多个 CNI 配置文件,kubelet 将会使用按文件名的字典顺序排列的第一个作为配置文件。 除了配置文件指定的 CNI 插件外,Kubernetes 还需要标准的 CNI [`lo`](https://github.com/containernetworking/plugins/blob/master/plugins/main/loopback/loopback.go) 插件,最低版本是0.2.0。 @@ -134,20 +134,24 @@ CNI 网络插件支持 `hostPort`。 您可以使用官方 [portmap](https://git #### 支持流量整形 +**实验功能** + CNI 网络插件还支持 pod 入口和出口流量整形。 您可以使用 CNI 插件团队提供的 [bandwidth](https://github.com/containernetworking/plugins/tree/master/plugins/meta/bandwidth) 插件, 也可以使用您自己的具有带宽控制功能的插件。 如果您想要启用流量整形支持,你必须将 `bandwidth` 插件添加到 CNI 配置文件 -(默认是 `/etc/cni/net.d`)。 +(默认是 `/etc/cni/net.d`)并保证该可执行文件包含在您的 CNI 的 bin 文件夹内 (默认为 `/opt/cni/bin`)。 ```json {