ungleich-k8s/cni/multus/hostdevices.yaml
Nico Schottelius 6d77c4c868 Test multus cni
2022-10-04 21:17:52 +02:00

35 lines
801 B
YAML

apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: eth1
namespace: default
spec:
config: |
{
"cniVersion": "0.4.0",
"name": "eth1",
"plugins": [
{
"type": "host-device",
"device": "eth1",
"ipam": {
"type": "host-local",
"ranges": [
[
{ "subnet": "10.1.2.0/24",
"rangeStart:": "10.1.2.10",
"rangeEnd:": "10.1.2.20"
}
],
[
{ "subnet": "2a0a:e5c0:10:20::/64",
"rangeStart:": "2a0a:e5c0:10:20::10",
"rangeEnd:": "2a0a:e5c0:10:20::20"
}
]
]
}
}
]
}