fix(home-assistant): Multus switch macvlan to bridge

This commit is contained in:
JJGadgets
2024-06-22 12:53:55 +08:00
parent bbc3ce80e3
commit 01d371e533

View File

@@ -4,11 +4,40 @@ kind: NetworkAttachmentDefinition
metadata:
name: iot
namespace: home-assistant
annotations:
description: VLAN tagging based on MAC handled by FortiSwitch NAC
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "iot",
"plugins": [
{
"type": "bridge",
"bridge": "br0",
"capabilities": { "ips": true, "mac": true },
"ipam": {
"type": "static",
"routes": [
{ "dst": "${IP_VLAN_IOT_CIDR}", "gw": "${IP_ROUTER_VLAN_IOT}" }
]
}
}
]
}
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: iot-macvlan
namespace: home-assistant
annotations:
description: Unused due to FortiSwitch NAC
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "iot-macvlan",
"plugins": [
{
"type": "macvlan",