From b2c3d2c630a8bbb377f9f8e03c9120acf72eb2c6 Mon Sep 17 00:00:00 2001 From: xieyanker Date: Mon, 25 Nov 2019 23:45:27 +0800 Subject: [PATCH] translate_networkpolicy (#17733) Translate English sentences into Chinese --- .../zh/docs/concepts/services-networking/network-policies.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/zh/docs/concepts/services-networking/network-policies.md b/content/zh/docs/concepts/services-networking/network-policies.md index 454bf0e3bf6c0..76aea85e3a482 100644 --- a/content/zh/docs/concepts/services-networking/network-policies.md +++ b/content/zh/docs/concepts/services-networking/network-policies.md @@ -177,7 +177,7 @@ __podSelector__: 这将在与 `NetworkPolicy` 相同的名称空间中选择特 __namespaceSelector__: 这将选择特定的名称空间,应将所有 Pod 用作其输入源或输出目的地。 -__namespaceSelector__ *和* __podSelector__: 一个指定 `namespaceSelector` 和 `podSelector` 的 `to`/`from` 条目选择特定命名空间中的特定 Pod。注意使用正确的YAML语法;这项政策: +__namespaceSelector__ *和* __podSelector__: 一个指定 `namespaceSelector` 和 `podSelector` 的 `to`/`from` 条目选择特定命名空间中的特定 Pod。注意使用正确的YAML语法;这项策略: ```yaml ... @@ -192,7 +192,7 @@ __namespaceSelector__ *和* __podSelector__: 一个指定 `namespaceSelector` ... ``` -contains a single `from` element allowing connections from Pods with the label `role=client` in namespaces with the label `user=alice`. But *this* policy: +在 `from` 数组中仅包含一个元素,只允许来自标有 `role = client` 的 Pod 且该 Pod 所在的名称空间中标有`user=alice`的连接。这项策略: ```yaml ...