mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
fix(home-assistant): Multus switch macvlan to bridge
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user