Skip to content

Commit

Permalink
Merge pull request aws#128 from dng-dev/patch-1
Browse files Browse the repository at this point in the history
Make sure calico  aws-node gets scheduled on all nodes.
  • Loading branch information
nckturner authored Jul 16, 2018
2 parents 1e2853b + 6737c8b commit 00e8b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 1 addition & 4 deletions config/v1.0/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ spec:
serviceAccountName: aws-node
hostNetwork: true
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: CriticalAddonsOnly
operator: Exists
- operator: Exists
containers:
- image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:1.0.0
name: aws-node
Expand Down
11 changes: 2 additions & 9 deletions config/v1.0/calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,7 @@ spec:
path: /var/run/calico
tolerations:
# Make sure calico/node gets scheduled on all nodes.
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
# Mark the pod as a critical add-on for rescheduling.
- key: CriticalAddonsOnly
operator: Exists
- operator: Exists

---

Expand Down Expand Up @@ -375,8 +369,7 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- operator: Exists
hostNetwork: true
serviceAccountName: calico-node
containers:
Expand Down

0 comments on commit 00e8b42

Please sign in to comment.