Skip to content

Commit

Permalink
translate_networkpolicy (#17733)
Browse files Browse the repository at this point in the history
Translate English sentences into Chinese
  • Loading branch information
xieyanker authored and k8s-ci-robot committed Nov 25, 2019
1 parent 7fe525c commit b2c3d2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
Expand All @@ -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
...
Expand Down

0 comments on commit b2c3d2c

Please sign in to comment.