Skip to content

Commit 29b60bb

Browse files
committed
[zh-cn]sync network-policy
Signed-off-by: xin.li <[email protected]>
1 parent 7b4a760 commit 29b60bb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

content/zh-cn/docs/reference/glossary/network-policy.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ A specification of how groups of Pods are allowed to communicate with each other
4141
<!--more-->
4242

4343
<!--
44-
Network Policies help you declaratively configure which Pods are allowed to connect to each other, which namespaces are allowed to communicate, and more specifically which port numbers to enforce each policy on. `NetworkPolicy` resources use labels to select Pods and define rules which specify what traffic is allowed to the selected Pods. Network Policies are implemented by a supported network plugin provided by a network provider. Be aware that creating a network resource without a controller to implement it will have no effect.
44+
NetworkPolicies help you declaratively configure which Pods are allowed to connect to each other, which namespaces are allowed to communicate,
45+
and more specifically which port numbers to enforce each policy on. NetworkPolicy objects use {{< glossary_tooltip text="labels" term_id="label" >}}
46+
to select Pods and define rules which specify what traffic is allowed to the selected Pods.
47+
48+
NetworkPolicies are implemented by a supported network plugin provided by a network provider.
49+
Be aware that creating a NetworkPolicy object without a controller to implement it will have no effect.
4550
-->
4651

4752
网络策略帮助你声明式地配置允许哪些 Pod 之间、哪些命名空间之间允许进行通信,
48-
并具体配置了哪些端口号来执行各个策略。`NetworkPolicy` 资源使用标签来选择 Pod,
49-
并定义了所选 Pod 可以接受什么样的流量。网络策略由网络提供商提供的并被 Kubernetes 支持的网络插件实现。
53+
并具体配置了哪些端口号来执行各个策略。`NetworkPolicy`
54+
资源使用{{< glossary_tooltip text="标签" term_id="label" >}}来选择 Pod,
55+
并定义了所选 Pod 可以接受什么样的流量。
56+
57+
网络策略由网络提供商提供的并被 Kubernetes 支持的网络插件实现。
5058
请注意,当没有控制器实现网络资源时,创建网络资源将不会生效。

0 commit comments

Comments
 (0)