You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(CNI) plugins for cluster networking. You must use a CNI plugin that is compatible with your cluster and that suits your needs. Different plugins are available (both open- and closed- source) in the wider Kubernetes ecosystem.
20
+
(CNI) plugins for cluster networking. You must use a CNI plugin that is compatible with your
21
+
cluster and that suits your needs. Different plugins are available (both open- and closed- source)
A Container Runtime, in the networking context, is a daemon on a node configured to provide CRI Services for kubelet. In particular, the Container Runtime must be configured to load the CNI plugins required to implement the Kubernetes network model.
51
+
A Container Runtime, in the networking context, is a daemon on a node configured to provide CRI
52
+
Services for kubelet. In particular, the Container Runtime must be configured to load the CNI
53
+
plugins required to implement the Kubernetes network model.
45
54
-->
46
55
## 安装 {#installation}
47
56
@@ -51,8 +60,10 @@ CNI 插件,从而实现 Kubernetes 网络模型。
51
60
52
61
{{< note >}}
53
62
<!--
54
-
Prior to Kubernetes 1.24, the CNI plugins could also be managed by the kubelet using the `cni-bin-dir` and `network-plugin` command-line parameters.
55
-
These command-line parameters were removed in Kubernetes 1.24, with management of the CNI no longer in scope for kubelet.
63
+
Prior to Kubernetes 1.24, the CNI plugins could also be managed by the kubelet using the
64
+
`cni-bin-dir` and `network-plugin` command-line parameters.
65
+
These command-line parameters were removed in Kubernetes 1.24, with management of the CNI no
For specific information about how to install and manage a CNI plugin, see the documentation for that plugin or [networking provider](/docs/concepts/cluster-administration/networking/#how-to-implement-the-kubernetes-networking-model).
90
+
For specific information about how to install and manage a CNI plugin, see the documentation for
91
+
that plugin or [networking provider](/docs/concepts/cluster-administration/networking/#how-to-implement-the-kubernetes-networking-model).
@@ -83,10 +97,14 @@ For specific information about how to install and manage a CNI plugin, see the d
83
97
<!--
84
98
## Network Plugin Requirements
85
99
86
-
For plugin developers and users who regularly build or deploy Kubernetes, the plugin may also need specific configuration to support kube-proxy.
87
-
The iptables proxy depends on iptables, and the plugin may need to ensure that container traffic is made available to iptables.
88
-
For example, if the plugin connects containers to a Linux bridge, the plugin must set the `net/bridge/bridge-nf-call-iptables` sysctl to `1` to ensure that the iptables proxy functions correctly.
89
-
If the plugin does not use a Linux bridge, but uses something like Open vSwitch or some other mechanism instead, it should ensure container traffic is appropriately routed for the proxy.
100
+
For plugin developers and users who regularly build or deploy Kubernetes, the plugin may also need
101
+
specific configuration to support kube-proxy. The iptables proxy depends on iptables, and the
102
+
plugin may need to ensure that container traffic is made available to iptables. For example, if
103
+
the plugin connects containers to a Linux bridge, the plugin must set the
104
+
`net/bridge/bridge-nf-call-iptables` sysctl to `1` to ensure that the iptables proxy functions
105
+
correctly. If the plugin does not use a Linux bridge, but uses something like Open vSwitch or
106
+
some other mechanism instead, it should ensure container traffic is appropriately routed for the
By default if no kubelet network plugin is specified, the `noop` plugin is used, which sets `net/bridge/bridge-nf-call-iptables=1` to ensure simple configurations (like Docker with a bridge) work correctly with the iptables proxy.
120
+
By default, if no kubelet network plugin is specified, the `noop` plugin is used, which sets
121
+
`net/bridge/bridge-nf-call-iptables=1` to ensure simple configurations (like Docker with a bridge)
In addition to the CNI plugin installed on the nodes for implementing the Kubernetes network model, Kubernetes also requires the container runtimes to provide a loopback interface `lo`, which is used for each sandbox (pod sandboxes, vm sandboxes, ...).
113
-
Implementing the loopback interface can be accomplished by re-using the [CNI loopback plugin.](http://github.com/containernetworking/plugins/blob/master/plugins/main/loopback/loopback.go) or by developing your own code to achieve this (see [this example from CRI-O](http://github.com/cri-o/ocicni/blob/release-1.24/pkg/ocicni/util_linux.go#L91)).
131
+
In addition to the CNI plugin installed on the nodes for implementing the Kubernetes network
132
+
model, Kubernetes also requires the container runtimes to provide a loopback interface `lo`, which
133
+
is used for each sandbox (pod sandboxes, vm sandboxes, ...).
134
+
Implementing the loopback interface can be accomplished by re-using the
or by developing your own code to achieve this (see
137
+
[this example from CRI-O](http://github.com/cri-o/ocicni/blob/release-1.24/pkg/ocicni/util_linux.go#L91)).
114
138
-->
115
139
### 本地回路 CNI {#loopback-cni}
116
140
@@ -124,15 +148,16 @@ Implementing the loopback interface can be accomplished by re-using the [CNI loo
124
148
<!--
125
149
### Support hostPort
126
150
127
-
The CNI networking plugin supports `hostPort`. You can use the official [portmap](http://github.com/containernetworking/plugins/tree/master/plugins/meta/portmap)
151
+
The CNI networking plugin supports `hostPort`. You can use the official
The CNI networking plugin also supports pod ingress and egress traffic shaping. You can use the official [bandwidth](http://github.com/containernetworking/plugins/tree/master/plugins/meta/bandwidth)
201
+
The CNI networking plugin also supports pod ingress and egress traffic shaping. You can use the
202
+
official [bandwidth](http://github.com/containernetworking/plugins/tree/master/plugins/meta/bandwidth)
177
203
plugin offered by the CNI plugin team or use your own plugin with bandwidth control functionality.
178
204
179
-
If you want to enable traffic shaping support, you must add the `bandwidth` plugin to your CNI configuration file
180
-
(default `/etc/cni/net.d`) and ensure that the binary is included in your CNI bin dir (default `/opt/cni/bin`).
205
+
If you want to enable traffic shaping support, you must add the `bandwidth` plugin to your CNI
206
+
configuration file (default `/etc/cni/net.d`) and ensure that the binary is included in your CNI
0 commit comments