Skip to content

Commit a2cacdd

Browse files
everettravenjoelanford
authored andcommitted
UPSTREAM: <carry>: add nodeSelector and tolerations to operator-controller deployment via kustomize patch
Signed-off-by: everettraven <[email protected]>
1 parent ed1b1b2 commit a2cacdd

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

openshift/kustomize/overlays/openshift/olmv1-ns/kustomization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ patches:
2323
kind: Deployment
2424
name: controller-manager
2525
path: patches/manager_deployment_log_verbosity.yaml
26+
- target:
27+
kind: Deployment
28+
name: controller-manager
29+
path: patches/manager_deployment_node_selection.yaml
2630
- path: patches/manager_namespace_privileged.yaml
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
- op: add
2+
path: /spec/template/spec/nodeSelector
3+
value: { "kubernetes.io/os": "linux", "node-role.kubernetes.io/master": "" }
4+
- op: add
5+
path: /spec/template/spec/tolerations
6+
value:
7+
[
8+
{
9+
"effect": "NoSchedule",
10+
"key": "node-role.kubernetes.io/master",
11+
"operator": "Exists",
12+
},
13+
{
14+
"effect": "NoExecute",
15+
"key": "node.kubernetes.io/unreachable",
16+
"operator": "Exists",
17+
"tolerationSeconds": 120,
18+
},
19+
{
20+
"effect": "NoExecute",
21+
"key": "node.kubernetes.io/not-ready",
22+
"operator": "Exists",
23+
"tolerationSeconds": 120,
24+
},
25+
]

openshift/manifests/19-deployment-openshift-operator-controller-operator-controller-controller-manager.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,27 @@ spec:
7979
- mountPath: /etc/containers
8080
name: etc-containers
8181
readOnly: true
82+
nodeSelector:
83+
kubernetes.io/os: linux
84+
node-role.kubernetes.io/master: ""
8285
securityContext:
8386
runAsNonRoot: true
8487
seccompProfile:
8588
type: RuntimeDefault
8689
serviceAccountName: operator-controller-controller-manager
8790
terminationGracePeriodSeconds: 10
91+
tolerations:
92+
- effect: NoSchedule
93+
key: node-role.kubernetes.io/master
94+
operator: Exists
95+
- effect: NoExecute
96+
key: node.kubernetes.io/unreachable
97+
operator: Exists
98+
tolerationSeconds: 120
99+
- effect: NoExecute
100+
key: node.kubernetes.io/not-ready
101+
operator: Exists
102+
tolerationSeconds: 120
88103
volumes:
89104
- emptyDir: {}
90105
name: cache

0 commit comments

Comments
 (0)