Add overlay lan

This commit is contained in:
Efstratios Kolovos 2025-07-22 14:21:11 +02:00
parent 46b0108828
commit 7a9b3176e8

View file

@ -1,20 +1,20 @@
# apiVersion: "k8s.cni.cncf.io/v1"
# kind: NetworkAttachmentDefinition
# metadata:
# name: lan-net
# namespace: ${TENANT_NAMESPACE}
# spec:
# config: '{
# "cniVersion": "0.3.1",
# "type": "bridge",
# "bridge": "br-lan",
# "ipam": {
# "type": "static",
# "addresses": [
# {
# "address": "172.168.100.2/24",
# "gateway": "172.168.100.1"
# }
# ]
# }
# }'
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: lan-ovn-160
namespace: net-demo
spec:
config: |
{
"cniVersion": "0.3.1",
"type": "ovn-k8s-cni-overlay",
"name": "lan-ovn-160",
"topology": "layer2",
"subnets": [
{"cidr": "192.168.160.0/24"}
],
"mtu": 1400,
"routes": [
{"dst": "10.60.0.0/16", "gw": "192.168.10.1"},
]
}