Skip to content

Commit 7e9fc95

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

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
@@ -101,12 +101,27 @@ spec:
101101
drop:
102102
- ALL
103103
terminationMessagePolicy: FallbackToLogsOnError
104+
nodeSelector:
105+
kubernetes.io/os: linux
106+
node-role.kubernetes.io/master: ""
104107
securityContext:
105108
runAsNonRoot: true
106109
seccompProfile:
107110
type: RuntimeDefault
108111
serviceAccountName: operator-controller-controller-manager
109112
terminationGracePeriodSeconds: 10
113+
tolerations:
114+
- effect: NoSchedule
115+
key: node-role.kubernetes.io/master
116+
operator: Exists
117+
- effect: NoExecute
118+
key: node.kubernetes.io/unreachable
119+
operator: Exists
120+
tolerationSeconds: 120
121+
- effect: NoExecute
122+
key: node.kubernetes.io/not-ready
123+
operator: Exists
124+
tolerationSeconds: 120
110125
volumes:
111126
- emptyDir: {}
112127
name: cache

0 commit comments

Comments
 (0)