Skip to content

Commit

Permalink
Change CNI config directory to /etc/cni/net.d
Browse files Browse the repository at this point in the history
* Change CNI config directory from `/etc/kubernetes/cni/net.d`
to `/etc/cni/net.d` (Kubelet default)
  • Loading branch information
dghubble committed Apr 1, 2021
1 parent 8c2e766 commit f87aa7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/calico/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
- name: SLEEP
value: "false"
- name: CNI_NET_DIR
value: "/etc/kubernetes/cni/net.d"
value: "/etc/cni/net.d"
volumeMounts:
- name: cni-bin-dir
mountPath: /host/opt/cni/bin
Expand Down Expand Up @@ -195,4 +195,5 @@ spec:
path: /opt/cni/bin
- name: cni-conf-dir
hostPath:
path: /etc/kubernetes/cni/net.d
type: DirectoryOrCreate
path: /etc/cni/net.d
2 changes: 1 addition & 1 deletion resources/cilium/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,5 @@ spec:
- name: cni-conf-dir
hostPath:
type: DirectoryOrCreate
path: /etc/kubernetes/cni/net.d
path: /etc/cni/net.d

3 changes: 2 additions & 1 deletion resources/flannel/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ spec:
path: /opt/cni/bin
- name: cni-conf-dir
hostPath:
path: /etc/kubernetes/cni/net.d
type: DirectoryOrCreate
path: /etc/cni/net.d
# Access iptables concurrently
- name: xtables-lock
hostPath:
Expand Down

0 comments on commit f87aa7f

Please sign in to comment.