Skip to content

Commit

Permalink
update subnet bind workload (#158)
Browse files Browse the repository at this point in the history
Signed-off-by: oilbeater <[email protected]>
  • Loading branch information
oilbeater committed Feb 5, 2024
1 parent 836b99e commit cd9edf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/subnet.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ spec:
image: docker.io/library/nginx:alpine
```
If you need to bind a subnet to a Workload type resource such as Deployment or StatefulSet, you need to set the `ovn.kubernetes.io/logical_switch` Annotation in `spec.template.metadata.annotations`.

## Overlay Subnet Gateway Settings

> This feature only works for Overlay mode Subnets, Underlay type Subnets need to use the underlying physical gateway to access the external network.
Expand Down
2 changes: 2 additions & 0 deletions docs/guide/subnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ spec:
image: docker.io/library/nginx:alpine
```
如果需要给 Workload 类型资源如 Deployment,StatefulSet 绑定子网,需要将 `ovn.kubernetes.io/logical_switch` Annotation 设置在 `spec.template.metadata.annotations`。

## Overlay 子网网关配置

> 该功能只对 Overlay 模式子网生效,Underlay 类型子网访问外部网络需要借助底层物理网关。
Expand Down

0 comments on commit cd9edf1

Please sign in to comment.