Skip to content

Commit

Permalink
Merge pull request #15 from harche/set_nodeselector
Browse files Browse the repository at this point in the history
schedule controller only on master nodes
  • Loading branch information
harche committed Oct 20, 2020
2 parents d36a9dd + 991c894 commit f845b3a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ spec:
labels:
control-plane: controller-manager
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 120
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
containers:
- command:
- /manager
Expand Down

0 comments on commit f845b3a

Please sign in to comment.