Install Multus on Kubernetes

0

I am trying to install Multus on the machines I set up. I installed all plugins from GitHub - containernetworking/plugins: Some reference and example networking plugins, maintained by the CNI team..

Attach the configuration file:

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: macvlan-confavishai
spec:
  config: '{
      "cniVersion": "0.3.0",
      "type": "macvlan",
      "master": "ens192",
      "mode": "bridge",
      "ipam": {
        "type": "host-local",
        "subnet": "10.154.142.0/24",
        "rangeStart": "10.154.142.200",
        "rangeEnd": "10.154.142.220",
        "routes": [
          { "dst": "0.0.0.0/0" }
        ],
        "gateway": "10.154.142.1"
      }
    }'

I tried to pick up Pods with a link to the same network configuration file:

  annotations: 
    k8s.v1.cni.cncf.io/networks: macvlan-confavishai

and I get an error: failed to find plugin “macvlan” in path [/opt/cni/bin /opt/cni/bin], failed to clean up sandbox container

In the /opt/cni/bin folder there is a Macvlan with permissions so I don’t understand where the error comes from.

Would appreciate help!