Enable CNI Providers#
To enable a Container Network Interface for MKE 4k:
- 
Obtain the default
mke4.yamlconfiguration file:mkectl init - 
In the
providerssection of themke4.yamlconfiguration file, set theenabledparameter for the CNI you want to deploy totrueand theenabledparameter for the CNIs you do not want to deploy tofalse. - 
Apply the configuration:
mkectl apply -f mke4.yaml - 
Verify the successful deployment of your chosen CNI in the MKE 4k cluster.
To verify Calico OSS CNI
Run the following command:
bash k0s kc get po --show-labels -A|grep -i -e tigera -e calicoExample output:
console { .no-copy } calico-apiserver calico-apiserver-5f6bbbcd-9lqsk 1/1 Running 0 34m apiserver=true,app.kubernetes.io/name=calico-apiserver,k8s-app=calico-apiserver,pod-template-hash=5f6bbbcd calico-apiserver calico-apiserver-5f6bbbcd-mxqq7 1/1 Running 0 34m apiserver=true,app.kubernetes.io/name=calico-apiserver,k8s-app=calico-apiserver,pod-template-hash=5f6bbbcd calico-system calico-kube-controllers-64764dc585-xlcl7 1/1 Running 0 34m app.kubernetes.io/name=calico-kube-controllers,k8s-app=calico-kube-controllers,pod-template-hash=64764dc585 calico-system calico-node-cx452 1/1 Running 0 33m app.kubernetes.io/name=calico-node,controller-revision-hash=c9788bcc,k8s-app=calico-node,pod-template-generation=2 calico-system calico-node-lfwrv 1/1 Running 0 33m app.kubernetes.io/name=calico-node,controller-revision-hash=c9788bcc,k8s-app=calico-node,pod-template-generation=2 calico-system calico-typha-658d6d7f94-f54t7 1/1 Running 0 34m app.kubernetes.io/name=calico-typha,k8s-app=calico-typha,pod-template-hash=658d6d7f94 calico-system csi-node-driver-8q2g8 2/2 Running 0 34m app.kubernetes.io/name=csi-node-driver,controller-revision-hash=6545d9b9d5,k8s-app=csi-node-driver,name=csi-node-driver,pod-template-generation=1 calico-system csi-node-driver-nsdgr 2/2 Running 0 34m app.kubernetes.io/name=csi-node-driver,controller-revision-hash=6545d9b9d5,k8s-app=csi-node-driver,name=csi-node-driver,pod-template-generation=1 tigera-operator tigera-operator-588c6fd5d4-wr5xc 1/1 Running 0 34m k8s-app=tigera-operator,name=tigera-operator,pod-template-hash=588c6fd5d4