Skip to content

Commit

Permalink
make sure flanneld got QoS class "Guaranteed" to have lower oom_score…
Browse files Browse the repository at this point in the history
…_adj

Usually flanneld consumes 5m CPU and 15Mi memory according to "kubectl top".
According to test by @tomdee at #855 (comment),
50Mi is enough for a 1000 node vxlan cluster.
  • Loading branch information
Dieken committed Dec 1, 2017
1 parent d608197 commit 77c8e12
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/k8s-manifests/kube-flannel-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ spec:
args:
- --ip-masq
- --kube-subnet-mgr
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
env:
Expand Down
7 changes: 7 additions & 0 deletions Documentation/kube-flannel-aliyun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ spec:
args:
- --ip-masq
- --kube-subnet-mgr
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
env:
Expand Down
7 changes: 7 additions & 0 deletions Documentation/kube-flannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ spec:
args:
- --ip-masq
- --kube-subnet-mgr
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
env:
Expand Down
7 changes: 7 additions & 0 deletions Documentation/minikube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ spec:
args:
- --ip-masq
- --kube-subnet-mgr
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
env:
Expand Down

0 comments on commit 77c8e12

Please sign in to comment.