Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfiniBand hca use macvlan cni error #95

Open
pyDream opened this issue Jan 16, 2024 · 1 comment
Open

InfiniBand hca use macvlan cni error #95

pyDream opened this issue Jan 16, 2024 · 1 comment

Comments

@pyDream
Copy link

pyDream commented Jan 16, 2024

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

@Kyrie336
Copy link

macvlan can be a secondary network to support IB and ROCE inside container, I tried. maybe some config is incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants