Skip to content

Commit

Permalink
schedule controller only on master nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Harshal Patil <harpatil@redhat.com>
  • Loading branch information
harche committed Oct 15, 2020
1 parent d36a9dd commit 991c894
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/manager/manager.yaml
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 991c894

Please sign in to comment.