Merge pull request #2010 from mihok/flannel-guarenteed

Adding equal resource requests/limits to flannel for guarenteed QoS
This commit is contained in:
Justin Santa Barbara 2017-03-01 22:14:44 -05:00 committed by GitHub
commit b0254a4800
1 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,13 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: run
mountPath: /run
@ -75,6 +82,13 @@ spec:
- name: install-cni
image: quay.io/coreos/flannel:v0.7.0
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" ]
resources:
limits:
cpu: 10m
memory: 25Mi
requests:
cpu: 10m
memory: 25Mi
volumeMounts:
- name: cni
mountPath: /etc/cni/net.d