Skip to content

Commit

Permalink
Merge pull request #130 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…28-to-release-0.3

[release-0.3] Add control-plane taint and label for Kubernetes v1.24+
  • Loading branch information
razo7 authored Sep 14, 2022
2 parents 3153a33 + 9584039 commit 831af3f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,16 @@ spec:
labels:
control-plane: controller-manager
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
Expand Down Expand Up @@ -303,14 +313,14 @@ spec:
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
nodeSelector:
node-role.kubernetes.io/master: ""
priorityClassName: system-cluster-critical
serviceAccountName: node-healthcheck-operator-controller-manager
terminationGracePeriodSeconds: 10
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
permissions:
- rules:
Expand Down
14 changes: 12 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ spec:
labels:
control-plane: controller-manager
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
priorityClassName: system-cluster-critical
containers:
Expand Down

0 comments on commit 831af3f

Please sign in to comment.