Skip to content

Commit 5a8c057

Browse files
authored
update: no need to add static route for custom vpc (#151)
Signed-off-by: zcq98 <[email protected]>
1 parent 2c264f8 commit 5a8c057

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

docs/advance/ovn-eip-fip-snat.en.md

-15
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ metadata:
255255
spec:
256256
namespaces:
257257
- vpc1
258-
staticRoutes: # configure routing rules: Which additional public network routes a subnet under the vpc needs to be based on needs to be added manually. The following example is for reference only. Users need to configure it according to their actual situation.
259-
- cidr: 192.168.0.1/28
260-
nextHopIP: 10.10.204.254
261-
policy: policySrc
262258
enableExternal: true # vpc enableExternal will automatically create an lrp association to the public network specified above
263259
addExternalSubnets: # configure addExternalSubnets to support connecting multiple additional public networks
264260
- extra
@@ -282,17 +278,6 @@ router 87ad06fd-71d5-4ff8-a1f0-54fa3bba1a7f (vpc1)
282278
gateway chassis: [7cedd14f-265b-42e5-ac17-e03e7a1f2342 276baccb-fe9c-4476-b41d-05872a94976d fd9f140c-c45d-43db-a6c0-0d4f8ea298dd]
283279
```
284280
285-
```bash
286-
# k ko nbctl lr-route-list vpc1
287-
IPv4 Routes
288-
Route Table <main>:
289-
192.168.0.1/28 10.10.204.254 src-ip
290-
0.0.0.0/0 10.5.204.254 dst-ip
291-
# The route currently supports automatic maintenance
292-
# Additional public networks require manual routing configuration in the vpc. In the above example, the source IP address is 192.168.0.1/28 and will be forwarded to the additional public network.
293-
# Users can manually configure routing rules according to the situation
294-
```
295-
296281
## 2. ovn-eip
297282
298283
This function is designed and used in the same way as iptables-eip, ovn-eip currently has three types

docs/advance/ovn-eip-fip-snat.md

-15
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,6 @@ metadata:
253253
spec:
254254
namespaces:
255255
- vpc1
256-
staticRoutes: # 配置路由规则:vpc 下的某个子网需要基于哪一个额外的公网网络的路由需要手动添加,以下示例仅供参考,用户需根据自己的实际情况进行配置
257-
- cidr: 192.168.0.1/28
258-
nextHopIP: 10.10.204.254
259-
policy: policySrc
260256
enableExternal: true # 开启 enableExternal 后 vpc 会自动连接名为 external 的 ls
261257
addExternalSubnets: # 配置 addExternalSubnets 支持连接多个额外的公网网络
262258
- extra
@@ -280,17 +276,6 @@ router 87ad06fd-71d5-4ff8-a1f0-54fa3bba1a7f (vpc1)
280276
gateway chassis: [7cedd14f-265b-42e5-ac17-e03e7a1f2342 276baccb-fe9c-4476-b41d-05872a94976d fd9f140c-c45d-43db-a6c0-0d4f8ea298dd]
281277
```
282278
283-
```bash
284-
# k ko nbctl lr-route-list vpc1
285-
IPv4 Routes
286-
Route Table <main>:
287-
192.168.0.1/28 10.10.204.254 src-ip
288-
0.0.0.0/0 10.5.204.254 dst-ip
289-
# 目前会为默认公网网络配置默认路由
290-
# 额外公网网络需要在 vpc 手动配置路由,上述实例中源 IP 地址为 192.168.0.1/28 会转发至额外公网网络
291-
# 用户可根据情况手动配置路由规则
292-
```
293-
294279
## 2. ovn-eip
295280
296281
该功能和 iptables-eip 设计和使用方式基本一致,ovn-eip 目前有三种 type

0 commit comments

Comments
 (0)