From d485dcc9c8ff30b4eedb7b1d8be3cd99ddc6d57e Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Tue, 4 May 2021 11:36:41 -0500 Subject: [PATCH] Add CriticalAddonsOnly toleration for rook-ceph-operator rook-ceph-operator is being deployed during initinfra-target and needs to be scheduled on tainted node-role.kubernetes.io/master node. Change-Id: I648a60f06cd615085ffd19bb6c1b5cebb974ef0f Signed-off-by: Andrii Ostapenko --- .../function/rook-operator/kustomization.yaml | 2 ++ .../rook-operator-patch-tolerations.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 manifests/function/rook-operator/rook-operator-patch-tolerations.yaml diff --git a/manifests/function/rook-operator/kustomization.yaml b/manifests/function/rook-operator/kustomization.yaml index c269a85e5..39d8910a9 100644 --- a/manifests/function/rook-operator/kustomization.yaml +++ b/manifests/function/rook-operator/kustomization.yaml @@ -1,2 +1,4 @@ resources: - upstream +patchesStrategicMerge: +- rook-operator-patch-tolerations.yaml diff --git a/manifests/function/rook-operator/rook-operator-patch-tolerations.yaml b/manifests/function/rook-operator/rook-operator-patch-tolerations.yaml new file mode 100644 index 000000000..c5a39802c --- /dev/null +++ b/manifests/function/rook-operator/rook-operator-patch-tolerations.yaml @@ -0,0 +1,14 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rook-ceph-operator + namespace: rook-ceph # namespace:operator +spec: + template: + spec: + tolerations: + # Mark the pod as a critical add-on for rescheduling. + - key: CriticalAddonsOnly + operator: Exists + - key: node-role.kubernetes.io/master + effect: NoSchedule