Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
fix(amazon-vpc-cni-k8s): fix node failures and pod creations errors d…
Browse files Browse the repository at this point in the history
…ue 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
```
  • Loading branch information
mumoshu committed Sep 30, 2018
1 parent 9e7b14f commit 09e338b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/controlplane/config/templates/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09e338b

Please sign in to comment.