From 602e6c47831cc622a295c1f08f89342b7aba46c6 Mon Sep 17 00:00:00 2001 From: Enzo Candotti Date: Thu, 16 Sep 2021 17:40:47 -0300 Subject: [PATCH] Add toleration to snmp pods A toleration needs to be added to all pods since the node-role.kubernetes.io/master taint will be restored to all master nodes. This will ensure that the pod will run on the master node. Story: 2009232 Task: 43339 Signed-off-by: Enzo Candotti Change-Id: I986b16217f8f5fbb0b902d29b30d0a2c9a718273 --- .../stx-snmp-helm/helm-charts/snmp/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stx-snmp-helm/stx-snmp-helm/helm-charts/snmp/templates/deployment.yaml b/stx-snmp-helm/stx-snmp-helm/helm-charts/snmp/templates/deployment.yaml index c1215d7..96681ea 100755 --- a/stx-snmp-helm/stx-snmp-helm/helm-charts/snmp/templates/deployment.yaml +++ b/stx-snmp-helm/stx-snmp-helm/helm-charts/snmp/templates/deployment.yaml @@ -23,6 +23,10 @@ spec: spec: imagePullSecrets: - name: default-registry-key + tolerations: + - key: "node-role.kubernetes.io/master" + operator: "Exists" + effect: "NoSchedule" containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"