ungleich-k8s/cni/multus/hostdevices.yaml
Nico Schottelius 79c78161bd Finish multus tests
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2022-10-05 13:07:42 +02:00

71 lines
1.6 KiB
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"
}
]
]
}
}
]
}
---
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: eth2
namespace: default
spec:
config: |
{
"cniVersion": "0.4.0",
"name": "eth2",
"plugins": [
{
"type": "host-device",
"device": "eth2",
"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"
}
]
]
}
}
]
}