From c4ad25f6e4d78b81baabfcfc441f6e6c1d0bce9b Mon Sep 17 00:00:00 2001 From: Brian McMahon Date: Tue, 19 Oct 2021 14:29:31 -0700 Subject: [PATCH] Add Tolerations to Prometheus CRs --- pkg/render/monitor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/render/monitor.go b/pkg/render/monitor.go index 00b69403dc..3419a53ca5 100644 --- a/pkg/render/monitor.go +++ b/pkg/render/monitor.go @@ -138,6 +138,8 @@ func (mc *monitorComponent) alertmanager() *monitoringv1.Alertmanager { ImagePullSecrets: secret.GetReferenceList(mc.pullSecrets), Replicas: ptr.Int32ToPtr(3), Version: components.ComponentPrometheusAlertmanager.Version, + Tolerations: mc.installation.ControlPlaneTolerations, + NodeSelector: mc.installation.ControlPlaneNodeSelector, }, } } @@ -162,6 +164,8 @@ func (mc *monitorComponent) prometheus() *monitoringv1.Prometheus { "prometheus": CalicoNodePrometheus, "role": "tigera-prometheus-rules", }}, + Tolerations: mc.installation.ControlPlaneTolerations, + NodeSelector: mc.installation.ControlPlaneNodeSelector, Alerting: &monitoringv1.AlertingSpec{ Alertmanagers: []monitoringv1.AlertmanagerEndpoints{ {