mirror of https://github.com/kubernetes/kops.git
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:
parent
511cecfd41
commit
c7168937a3
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue