Skip to content

Commit

Permalink
Optimize eip doc (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: zcq98 <[email protected]>
Co-authored-by: zcq98 <[email protected]>
  • Loading branch information
zhaocongqi and zhaocongqi authored Dec 1, 2023
1 parent 6378626 commit ffc48f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/advance/ovn-eip-fip-snat.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ spec:
# Dynamically allocate an eip resource that is reserved for fip dnat_and_snat scenarios
```

When an additional public network is configured, you can specify the public network that needs to be expanded through externalSubnet. In the above configuration, external204 and extra are optional.
The externalSubnet field does not need to be configured. If not configured, the default public network will be used. In the above configuration, the default public network is external204.

If you want to use an additional public network, you need to explicitly specify the public network to be extended through externalSubnet. In the above configuration, the extended public network is extra.

### 2.1 Create an fip for pod

Expand Down Expand Up @@ -543,7 +545,7 @@ spec:

```

When an additional public network is configured, you can specify the public network that needs to be expanded through externalSubnet. In the above configuration, external204 and extra are optional.
If you want to use an additional public network, you need to explicitly specify the public network to be extended through externalSubnet. In the above configuration, the extended public network is extra.

### 3.2 ovn-snat corresponds to a pod IP

Expand Down Expand Up @@ -583,7 +585,7 @@ spec:

```

When an additional public network is configured, you can specify the public network that needs to be expanded through externalSubnet. In the above configuration, external204 and extra are optional.
If you want to use an additional public network, you need to explicitly specify the public network to be extended through externalSubnet. In the above configuration, the extended public network is extra.

After the above resources are created, you can see the following resources that the snat public network feature depends on.

Expand Down Expand Up @@ -710,7 +712,7 @@ spec:

```

When an additional public network is configured, you can specify the public network that needs to be expanded through externalSubnet. In the above configuration, external204 and extra are optional.
If you want to use an additional public network, you need to explicitly specify the public network to be extended through externalSubnet. In the above configuration, the extended public network is extra.

The configuration of OvnDnatRule is similar to that of IptablesDnatRule.

Expand Down
10 changes: 6 additions & 4 deletions docs/advance/ovn-eip-fip-snat.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ spec:
# 动态分配一个 eip 资源,该资源预留用于 fip 场景
```

当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络
externalSubnet 字段可不进行配置,若未配置则会使用默认公网网络,在上述配置中默认公网网络为 external204。

若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra。

### 2.1 ovn-fip 为 pod 绑定一个 fip

Expand Down Expand Up @@ -537,7 +539,7 @@ spec:

```

当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络
若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra

### 3.2 ovn-snat 对应到一个 pod ip

Expand Down Expand Up @@ -578,7 +580,7 @@ spec:

```

当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络
若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra。

以上资源创建后,可以看到 snat 公网功能依赖的如下资源。

Expand Down Expand Up @@ -706,7 +708,7 @@ spec:

```

当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络
若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra

OvnDnatRule 的配置与 IptablesDnatRule 类似

Expand Down

0 comments on commit ffc48f8

Please sign in to comment.