Skip to content

Commit

Permalink
Set routingViaHost in OVN configuration
Browse files Browse the repository at this point in the history
Set the `gatewayConfig.routingViaHost` option in the OVNKubernetes
configuration. This is necessary for connections initiated from pods
to use the host routing tables. From the docs [1]:

> Set this field to true to send egress traffic from pods to the host
> networking stack. For highly-specialized installations and
> applications that rely on manually configured routes in the kernel
> routing table, you might want to route egress traffic to the host
> networking stack. By default, egress traffic is processed in OVN to
> exit the cluster and is not affected by specialized routes in the
> kernel routing table. The default value is false.
>
> This field has an interaction with the Open vSwitch hardware
> offloading feature. If you set this field to true, you do not
> receive the performance benefits of the offloading because egress
> traffic is processed by the host networking stack.

[1]: https://docs.openshift.com/container-platform/4.10/networking/cluster-network-operator.html
  • Loading branch information
larsks committed Jun 27, 2022
1 parent 6d198ca commit 37c4dc7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- network.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
name: cluster
spec:
defaultNetwork:
ovnKubernetesConfig:
gatewayConfig:
routingViaHost: true
1 change: 1 addition & 0 deletions cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
- ../../bundles/openshift-gitops
- ../../bundles/acm
- ../../bundles/odf
- ../../base/operator.openshift.io/networks/cluster
- clusterversion.yaml
- machineconfigs/disable-net-ifnames.yaml
- machineconfigs/mellanox-udev-rules
Expand Down

0 comments on commit 37c4dc7

Please sign in to comment.