k8s吧 关注:549贴子:2,040
  • 3回复贴,共1

请教大佬们一个问题,关于macvlan 这个插件安装的,大佬们知道吗

只看楼主收藏回复

我创建macvlan资源后,在pod里使用,启动pod时报错

pod里使用这个网络资源

启动后报错,提示网卡已存在



IP属地:北京1楼2023-07-11 13:36回复
    报错图片不能放大,补一下


    IP属地:北京2楼2023-07-11 13:39
    回复
      Normal Scheduled 20s default-scheduler Successfully assigned default/busybox-network-test to node1
      Normal AddedInterface 18s multus Add eth0 [10.244.166.174/32] from k8s-pod-network
      Normal AddedInterface 18s multus Add net1 [10.10.2.34/16] from default/macvlan-conf-1
      Normal AddedInterface 18s multus Add eth0 [10.244.166.174/32] from multus-cni-network
      Warning FailedCreatePodSandBox 16s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "cfcd88788864ba0dc764f773e2022a947ded81a4ef729635a82a57962c304ccf" network for pod "busybox-network-test": networkPlugin cni failed to set up pod "busybox-network-test_default" network: [default/busybox-network-test/:multus-cni-network]: error adding container to network "multus-cni-network": [default/busybox-network-test/:multus-cni-network]: error adding container to network "multus-cni-network": [default/busybox-network-test/:multus-cni-network]: error adding container to network "multus-cni-network": [default/busybox-network-test/:multus-cni-network]: error adding container to network "multus-cni-network": [default/busybox-network-test/:multus-cni-network]: error adding container to network "multus-cni-network": [default/busybox-network-test/:macvlan-conf-1]: error adding container to network "macvlan-conf-1": DelegateAdd: cannot set "macvlan" interface name to "net1": validateIfName: interface name net1 already exists


      IP属地:北京3楼2023-07-11 13:41
      回复
        遇到同样的问题了


        IP属地:上海4楼2023-07-21 10:11
        回复