How to configure cni network for kubernetes

5/19/2017

In the past, we deployed the k8s cluster with the short command:KUBERNETES_PROVIDER=ubuntu ./kube-up.sh, the default network is flannel. Now we'd like to isolate service for different user based on calico+namespace, how to configure calico network in shell script ubuntu/config-default.sh ,what does CNI_PLUGIN_EXES mean ?

-- zulv
calico
kubernetes

1 Answer

5/19/2017

I don't have a local cluster setup to test this advice, but I do know that coreos-kubernetes needs the CNI binaries to live in /opt/cni/bin or bad things happen.

Thus, I would guess CNI_PLUGIN_EXES would be /opt/cni/bin/YOUR_CNI_BINARY where YOUR_CNI_BINARY is the one that Calico expects.

-- mdaniel
Source: StackOverflow