macvlan cni config:
cat <<EOF | kubectl create -f -
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlan-conf-1
spec:
config: '{
"cniVersion": "0.3.0",
"type": "macvlan",
"master": "ibs10",
"mode": "bridge",
"ipam": {
"type": "host-local",
"ranges": [
[ {
"subnet": "20.10.0.0/16",
"rangeStart": "20.10.1.20",
"rangeEnd": "20.10.3.50",
"gateway": "20.10.0.254"
} ]
]
}
}'
EOF
When I created the pod, an error occurred:
error adding container to network "macvlan-conf-1": failed to create macvlan: invalid argument
Then,I execute “ip link add mac1 link ibs10 type macvlan” on worknode and it also reports an error: RTNETLINK answers: Invalid argument
I want to know if macvlan as a secondary network so that in container supports IB or only supports RoCE
macvlan cni config: cat <<EOF | kubectl create -f - apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: macvlan-conf-1 spec: config: '{ "cniVersion": "0.3.0", "type": "macvlan", "master": "ibs10", "mode": "bridge", "ipam": { "type": "host-local", "ranges": [ [ { "subnet": "20.10.0.0/16", "rangeStart": "20.10.1.20", "rangeEnd": "20.10.3.50", "gateway": "20.10.0.254" } ] ] } }' EOF When I created the pod, an error occurred: error adding container to network "macvlan-conf-1": failed to create macvlan: invalid argument Then,I execute “ip link add mac1 link ibs10 type macvlan” on worknode and it also reports an error: RTNETLINK answers: Invalid argument I want to know if macvlan as a secondary network so that in container supports IB or only supports RoCE