Skip to content

Commit

Permalink
fix minor errors (#950)
Browse files Browse the repository at this point in the history
Signed-off-by: dcwbq <[email protected]>
Co-authored-by: Stella <[email protected]>
  • Loading branch information
biqiangwu and Stella0621 authored Nov 8, 2023
1 parent d1045cc commit 0970cce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/reference/EgressPolicy.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
- "10.6.1.92/32"
- "fd00::92/128"
priority: 100 # (7)
status:
eip: # (8)
ipv4: 172.18.1.2
ipv6: fc00:f853:ccd:e793::9
node: egressgateway-worker # (9)
```
1. 选择 EgressPolicy 引用的 EgressGateway:
Expand All @@ -37,3 +42,5 @@ spec:
5. 通过直接指定 Pod 的网段选择需要应用 EgressPolicy 的 Pod(4 和 5 不能同时使用)
6. 指定访问 Egress 的目标地址,若未指定目标地址,则以下策略将生效:对于那些目标地址不属于集群内部 CIDR 的请求,将全部转发到 Egress 节点。
7. 策略的优先级。
8. 该 EgressPolicy 所分配到的 EgressIP
9. 该 EgressPolicy 的 EgressIP 所在的节点,同时也是该 EgressPolicy 的网关节点
5 changes: 3 additions & 2 deletions docs/usage/Install.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ helm repo update
spec:
ippools:
ipv4:
- "10.6.1.60-10.6.1.66"
- "172.22.0.100-172.22.0.110"
nodeSelector:
selector:
matchLabels:
Expand Down Expand Up @@ -171,6 +171,7 @@ helm repo update
```
2. Create an EgressPolicy CR object for your application.
An EgressPolicy instance is used to define which Pods' egress traffic should be forwarded through EgressGateway nodes, along with other configuration details.
You can create an example as follows. When a matching Pod accesses any external address in the cluster (excluding Node IP, CNI Pod CIDR, ClusterIP), it will be forwarded through EgressGateway nodes.
Note that EgressPolicy objects are tenant-level, so they must be created under the tenant of the selected application.
Expand Down Expand Up @@ -271,5 +272,5 @@ helm repo update
$ kubectl exec -it visitor-6764bb48cc-29vq9 bash
$ curl 10.6.1.92:8080
Remote IP: 10.6.1.60
Remote IP: 172.22.0.110
```
4 changes: 2 additions & 2 deletions docs/usage/Install.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ helm repo update
spec:
ippools:
ipv4:
- "10.6.1.60-10.6.1.66"
- "172.22.0.100-172.22.0.110"
nodeSelector:
selector:
matchLabels:
Expand Down Expand Up @@ -273,5 +273,5 @@ helm repo update
$ kubectl exec -it visitor-6764bb48cc-29vq9 bash
$ curl 10.6.1.92:8080
Remote IP: 10.6.1.60
Remote IP: 172.22.0.110
```

1 comment on commit 0970cce

@weizhoublue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.