Mark calico-node pods as critical

When system is low on resources, it is possible that calico-node will be
evicted by kubernetes. That's what happened today in our cluster
bringing down all containers.
This commit is contained in:
Andrey Chernih 2017-05-17 14:52:38 -07:00
parent 511cecfd41
commit c7168937a3
2 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,8 @@ spec:
labels:
k8s-app: calico-node
role.kubernetes.io/networking: "1"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
serviceAccountName: calico

View File

@ -70,6 +70,11 @@ spec:
labels:
k8s-app: calico-node
role.kubernetes.io/networking: "1"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: |
[{"key": "dedicated", "value": "master", "effect": "NoSchedule" },
{"key":"CriticalAddonsOnly", "operator":"Exists"}]
spec:
hostNetwork: true
containers: