Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: add nodeSelector for coredns-autoscaler (#3109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Wong committed Apr 21, 2020
1 parent 74d7a51 commit 22c5fb6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions parts/k8s/addons/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ metadata:
namespace: kube-system
labels:
k8s-app: coredns-autoscaler
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: EnsureExists
spec:
selector:
Expand All @@ -318,6 +319,18 @@ spec:
labels:
k8s-app: coredns-autoscaler
spec:
priorityClassName: system-cluster-critical
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: CriticalAddonsOnly
operator: "Exists"
- operator: "Exists"
effect: NoExecute
- operator: "Exists"
effect: NoSchedule
nodeSelector:
beta.kubernetes.io/os: linux
containers:
- name: autoscaler
image: {{ContainerImage "coredns-autoscaler"}}
Expand Down
13 changes: 13 additions & 0 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22c5fb6

Please sign in to comment.