Skip to content

Commit

Permalink
Merge commit 'cff39eeb3d0dd3710f83b5eba7bde1afa8fa2d46' into k8s-mani…
Browse files Browse the repository at this point in the history
…fests
  • Loading branch information
tomdee committed Sep 22, 2017
2 parents bcedcb1 + cff39ee commit 89092aa
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Documentation/kube-flannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ spec:
operator: Exists
effect: NoSchedule
serviceAccountName: flannel
initContainers:
- name: install-cni
image: quay.io/coreos/flannel:v0.8.0-amd64
command:
- cp
args:
- -f
- /etc/kube-flannel/cni-conf.json
- /etc/cni/net.d/10-flannel.conf
volumeMounts:
- name: cni
mountPath: /etc/cni/net.d
- name: flannel-cfg
mountPath: /etc/kube-flannel/
containers:
- name: kube-flannel
image: quay.io/coreos/flannel:v0.8.0-amd64
Expand All @@ -73,14 +87,6 @@ spec:
mountPath: /run
- name: flannel-cfg
mountPath: /etc/kube-flannel/
- name: install-cni
image: quay.io/coreos/flannel:v0.8.0-amd64
command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
volumeMounts:
- name: cni
mountPath: /etc/cni/net.d
- name: flannel-cfg
mountPath: /etc/kube-flannel/
volumes:
- name: run
hostPath:
Expand Down

0 comments on commit 89092aa

Please sign in to comment.