From 09e338b3c133292d47edc94169ee3f056df04a42 Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Sun, 30 Sep 2018 22:11:41 +0900 Subject: [PATCH] fix(amazon-vpc-cni-k8s): fix node failures and pod creations errors due to missing cni config This fixes the node condition issue that can be seen by runnign `kubectl describe node NODE`: ``` Ready False Sun, 30 Sep 2018 18:42:40 +0900 Sun, 30 Sep 2018 18:31:49 +0900 KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized ``` --- core/controlplane/config/templates/cloud-config-controller | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/controlplane/config/templates/cloud-config-controller b/core/controlplane/config/templates/cloud-config-controller index 67291ec73..96e6ae8c6 100644 --- a/core/controlplane/config/templates/cloud-config-controller +++ b/core/controlplane/config/templates/cloud-config-controller @@ -4970,7 +4970,9 @@ write_files: path: /opt/cni/bin - name: cni-net-dir hostPath: - path: /etc/cni/net.d + # changed from /etc/cni/net.d to /etc/kubernetes/cni/net.d to accomodate kube-aws' setup + # original: https://github.com/aws/amazon-vpc-cni-k8s/blob/a91e807c8d752a13f8047f54fa78fcd3a37dfc20/config/v1.1/aws-k8s-cni.yaml#L92 + path: /etc/kubernetes/cni/net.d - name: log-dir hostPath: path: /var/log