theshire/kubernetes/apps/kube-system/multus/config/net-attach-iot.yaml

32 lines
742 B
YAML

---
# yaml-language-server: $schema=https://ks.hsn.dev/k8s.cni.cncf.io%2Fnetworkattachmentdefinition_v1.json
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: multus-iot
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "multus-iot",
"plugins": [
{
"type": "macvlan",
"master": "bond0.30",
"mode": "bridge",
"capabilities": {
"ips": true
},
"ipam": {
"type": "static",
"routes": [
{ "dst": "10.1.2.0/24", "gw": "10.1.3.1" }
]
}
},
{
"capabilities": { "mac": true },
"type": "tuning"
}
]
}