Skip to content

Commit

Permalink
Merge pull request #1577 from Brian-McM/auto-pick-of-#1576-upstream-r…
Browse files Browse the repository at this point in the history
…elease-v1.22

[release-v1.22] Auto pick #1576: Add Tolerations to Prometheus CRs
  • Loading branch information
Brian-McM authored Oct 19, 2021
2 parents 08f2c86 + c4ad25f commit 851a90a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/render/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
}
Expand All @@ -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{
{
Expand Down

0 comments on commit 851a90a

Please sign in to comment.