I am trying to configure a network configuration in our Kubernetes cluster via Helm with Calico, we are running minikube with calico like this:
minikube start --network-plugin=cni --cni=calico
And we include the network config like this:
# network attachement
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: sriov-albora
namespace: test
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/pci_sriov_net_sriovnet2
spec:
config: '{
"type": "sriov",
"vlan": 1040,
"ipam": {
"type": "static",
"addresses": [ { "address": "25.25.25.38/24" } ],
"routes": [{ "dst": "10.10.0.0/24", "gw": "25.25.25.30" }]
}
}'
but it doesn't work... we receive this:
Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "NetworkAttachmentDefinition" in version "k8s.cni.cncf.io/v1"
I am trying to figure out what happen with different tutorials, docs or stack-over questions but I am lost