From 944fa9d9750a5f9357f3ae03ea3150ef50d1e33d Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 13 Mar 2017 20:13:21 +0300 Subject: [PATCH] Explicitly set cni-bin-dir --- roles/kubernetes/node/templates/kubelet.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/node/templates/kubelet.j2 b/roles/kubernetes/node/templates/kubelet.j2 index dc0a3dced..37058844d 100644 --- a/roles/kubernetes/node/templates/kubelet.j2 +++ b/roles/kubernetes/node/templates/kubelet.j2 @@ -43,7 +43,7 @@ KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}" KUBELET_ARGS="{{ kubelet_args_base }} {{ kubelet_args_dns }} {{ kubelet_args_kubeconfig }} {{ node_labels }}" {% if kube_network_plugin is defined and kube_network_plugin in ["calico", "weave", "canal"] %} -KUBELET_NETWORK_PLUGIN="--network-plugin=cni --network-plugin-dir=/etc/cni/net.d" +KUBELET_NETWORK_PLUGIN="--network-plugin=cni --network-plugin-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin" {% elif kube_network_plugin is defined and kube_network_plugin == "weave" %} DOCKER_SOCKET="--docker-endpoint=unix:/var/run/weave/weave.sock" {% elif kube_network_plugin is defined and kube_network_plugin == "cloud" %}