Skip to content

Commit

Permalink
Merge pull request #1481 from rajatchopra/cniplugin
Browse files Browse the repository at this point in the history
install flannel cni plugin binary
  • Loading branch information
rajatchopra authored Oct 14, 2021
2 parents fca1560 + 8dddf2f commit 51fbf37
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Documentation/kube-flannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,19 @@ spec:
effect: NoSchedule
serviceAccountName: flannel
initContainers:
- name: install-cni-plugin
image: rancher/flannel-cni-plugin:v1.2
command:
- cp
args:
- -f
- /flannel
- /opt/cni/bin/flannel
volumeMounts:
- name: cni-plugin
mountPath: /opt/cni/bin
- name: install-cni
image: quay.io/coreos/flannel:v0.14.0
image: quay.io/coreos/flannel:v0.15.0-rc1
command:
- cp
args:
Expand All @@ -180,7 +191,7 @@ spec:
mountPath: /etc/kube-flannel/
containers:
- name: kube-flannel
image: quay.io/coreos/flannel:v0.14.0
image: quay.io/coreos/flannel:v0.15.0-rc1
command:
- /opt/bin/flanneld
args:
Expand Down Expand Up @@ -215,6 +226,9 @@ spec:
- name: run
hostPath:
path: /run/flannel
- name: cni-plugin
hostPath:
path: /opt/cni/bin
- name: cni
hostPath:
path: /etc/cni/net.d
Expand Down

0 comments on commit 51fbf37

Please sign in to comment.