treasuremap/manifests/function/rook-operator/rook-operator-patch-tolerations.yaml
Andrii Ostapenko d485dcc9c8 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 <andrii.ostapenko@att.com>
2021-05-06 15:23:55 +00:00

15 lines
353 B
YAML

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