From 31d0d5db97294107f45b27c2c09a23dd5b7add73 Mon Sep 17 00:00:00 2001 From: Andre Fernando Zanella Kantek Date: Thu, 30 Sep 2021 09:24:14 -0400 Subject: [PATCH] Add toleration for ptp-notification application Toleration for the pods composing the application is being added to this change. The application is composed of a daemonset and a deployment so the configuration is added on both templates Tested in an AIO-SX: - enabled the node taint - deleted a pod without toleration and observed that the new one stays in "pending" - delete the application pods and observed the new ones to reach "running" state - remove the node taint - observe the pending pod reaches "running" Story: 2009232 Task: 43348 Signed-off-by: Andre Fernando Zanella Kantek Change-Id: I92ce19145efb92847ef59bc5e1ed65cddbe1cf57 --- .../helm-charts/ptp-notification/templates/daemonset.yaml | 4 ++++ .../helm-charts/ptp-notification/templates/deployment.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/daemonset.yaml b/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/daemonset.yaml index edc6e6d..4f136a8 100644 --- a/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/daemonset.yaml +++ b/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/daemonset.yaml @@ -171,3 +171,7 @@ spec: hostPath: path: /etc/ type: Directory + tolerations: + - key: "node-role.kubernetes.io/master" + operator: "Exists" + effect: "NoSchedule" diff --git a/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/deployment.yaml b/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/deployment.yaml index 0601304..967b266 100644 --- a/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/deployment.yaml +++ b/stx-ptp-notification-helm/stx-ptp-notification-helm/helm-charts/ptp-notification/templates/deployment.yaml @@ -23,6 +23,10 @@ spec: spec: imagePullSecrets: - name: {{ .Values.registration.imagePullSecrets }} + tolerations: + - key: "node-role.kubernetes.io/master" + operator: "Exists" + effect: "NoSchedule" {{- if .Values.registration.affinity }} affinity: {{ toYaml .Values.registration.affinity | indent 8 }}