Last active
September 27, 2026 14:56
-
-
Save thikade/0ac5e9687534f75918f7560848d23ed6 to your computer and use it in GitHub Desktop.
NNCP for OCP using ovs-bridge on a dedicated (secondary) pyhsical interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: k8s.cni.cncf.io/v1 | |
| kind: NetworkAttachmentDefinition | |
| metadata: | |
| name: br2-vm-vlan-9 | |
| namespace: vm1 | |
| spec: | |
| config: |- | |
| { | |
| "cniVersion": "0.4.0", | |
| "name": "vm-network", | |
| "type": "ovn-k8s-cni-overlay", | |
| "mtu": 1500, | |
| "netAttachDefName": "vm1/br2-vm-vlan-9", | |
| "topology": "localnet", | |
| "vlanID": 9 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: nmstate.io/v1 | |
| kind: NodeNetworkConfigurationPolicy | |
| metadata: | |
| name: ocp-ovs-bridge-vlan | |
| spec: | |
| desiredState: | |
| interfaces: | |
| - bridge: | |
| allow-extra-patch-ports: true | |
| options: | |
| mcast-snooping-enable: true | |
| stp: | |
| enabled: false | |
| port: | |
| - name: ovs-br2 | |
| - name: bond2 | |
| name: br2 | |
| state: up | |
| type: ovs-bridge | |
| - name: ovs-br2 | |
| state: up | |
| type: ovs-interface | |
| ipv4: | |
| enabled: false | |
| ipv6: | |
| enabled: false | |
| ... # bond definition comes here | |
| ovn: | |
| bridge-mappings: | |
| - bridge: br2 | |
| localnet: vm-network | |
| state: present | |
| --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment