From 518537113b0310e6e5c38ccecf5a34f753f6ba63 Mon Sep 17 00:00:00 2001 From: Mahesh Shetty Date: Tue, 3 Oct 2023 15:59:24 +0530 Subject: [PATCH] operator: add tolerations for rook-ceph operator deployment This addresses #12660. As discussed in the issue when zone failure happens and if the operator running in that zone, then it takes the default toleration of 300 seconds. We want to override this default toleration seconds to 5 seconds so that operator gets redeployed immediately Signed-off-by: Mahesh Shetty --- deploy/charts/rook-ceph/templates/deployment.yaml | 5 +++++ deploy/examples/operator-openshift.yaml | 5 +++++ deploy/examples/operator.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/deploy/charts/rook-ceph/templates/deployment.yaml b/deploy/charts/rook-ceph/templates/deployment.yaml index c91ba3d2fafb..5b4db4d10b10 100644 --- a/deploy/charts/rook-ceph/templates/deployment.yaml +++ b/deploy/charts/rook-ceph/templates/deployment.yaml @@ -26,6 +26,11 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} + tolerations: + - effect: NoExecute + key: node.kubernetes.io/unreachable + operator: Exists + tolerationSeconds: 5 containers: - name: rook-ceph-operator image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index 5c402ebe63de..5f873ce4c642 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -669,6 +669,11 @@ spec: labels: app: rook-ceph-operator spec: + tolerations: + - effect: NoExecute + key: node.kubernetes.io/unreachable + operator: Exists + tolerationSeconds: 5 serviceAccountName: rook-ceph-system containers: - name: rook-ceph-operator diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index 808f7cc777dd..0fb176c721ac 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -595,6 +595,11 @@ spec: labels: app: rook-ceph-operator spec: + tolerations: + - effect: NoExecute + key: node.kubernetes.io/unreachable + operator: Exists + tolerationSeconds: 5 serviceAccountName: rook-ceph-system containers: - name: rook-ceph-operator