Skip to content

Commit

Permalink
Add resource request to flannel and mount /run/flannel
Browse files Browse the repository at this point in the history
* Request 100m CPU without a limit (similar to Calico)
  • Loading branch information
dghubble committed Nov 11, 2018
1 parent 3f3ab6b commit 39f9afb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions resources/flannel/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ spec:
fieldPath: status.podIP
securityContext:
privileged: true
resources:
requests:
cpu: 100m
volumeMounts:
- name: flannel-config
mountPath: /etc/kube-flannel/
- name: cni-conf-dir
mountPath: /etc/cni/net.d
- name: run
mountPath: /run
- name: run-flannel
mountPath: /run/flannel
- name: install-cni
image: ${flannel_cni_image}
command: ["/install-cni.sh"]
Expand All @@ -68,12 +69,12 @@ spec:
- name: cni-conf-dir
mountPath: /host/etc/cni/net.d
volumes:
- name: run
hostPath:
path: /run
- name: flannel-config
configMap:
name: flannel-config
- name: run-flannel
hostPath:
path: /run/flannel
# Used by install-cni
- name: cni-bin-dir
hostPath:
Expand Down

0 comments on commit 39f9afb

Please sign in to comment.