From 10051cce95de6f1eaff5105dd1cc757b773a4026 Mon Sep 17 00:00:00 2001 From: Yvonne Ding Date: Tue, 29 Jun 2021 14:06:05 -0400 Subject: [PATCH] Add a toleration in ceph-pools-audit CMK will check worker has the taint "cmk=true:NoSchedule" after assign application-isolated cores on Applications. Current ceph-pools-audit Cron job does not allow pod to be scheduled when this taint is applied. It is observed one ceph-pools-audit pod is pending because it can not tolerate {cmk:true} taint on AIO-SX. Add toleration support for ceph-pools-audit so that a helm override can be provided to allow job scheduling when CMK is installed. Closes-Bug: 1934006 Signed-off-by: Yvonne Ding Change-Id: I57462ac5d4ce700dbd89dd7569101834e0f0c83d --- .../ceph-pools-audit/templates/job-ceph-pools-audit.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stx-platform-helm/stx-platform-helm/helm-charts/ceph-pools-audit/templates/job-ceph-pools-audit.yaml b/stx-platform-helm/stx-platform-helm/helm-charts/ceph-pools-audit/templates/job-ceph-pools-audit.yaml index 40376ed..8fc35fc 100644 --- a/stx-platform-helm/stx-platform-helm/helm-charts/ceph-pools-audit/templates/job-ceph-pools-audit.yaml +++ b/stx-platform-helm/stx-platform-helm/helm-charts/ceph-pools-audit/templates/job-ceph-pools-audit.yaml @@ -48,6 +48,10 @@ spec: restartPolicy: OnFailure nodeSelector: {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} + {{- with .Values.tolerations }} + tolerations: +{{ toYaml . | indent 12 }} + {{- end }} volumes: - name: ceph-pools-bin configMap: