Score:0

Trying to use a CNI configuration with Calico in Minikube with Helm

jp flag

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

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.