1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

Add nodeSelector to PrometheusSpec

This commit is contained in:
Adam Sunderland 2017-01-18 12:14:47 -06:00 committed by Alex Somesan
parent 81b1e1d814
commit 37f3002b35
2 changed files with 3 additions and 0 deletions
pkg
client/monitoring/v1alpha1
prometheus

View file

@ -61,6 +61,8 @@ type PrometheusSpec struct {
Alerting AlertingSpec `json:"alerting,omitempty"`
// Define resources requests and limits for single Pods.
Resources v1.ResourceRequirements `json:"resources,omitempty"`
// Define which Nodes the Pods are scheduled on.
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// EvaluationInterval string `json:"evaluationInterval"`
// Remote RemoteSpec `json:"remote"`
// Sharding...

View file

@ -265,6 +265,7 @@ func makeStatefulSetSpec(p v1alpha1.Prometheus) v1beta1.StatefulSetSpec {
},
},
},
NodeSelector: p.Spec.NodeSelector,
TerminationGracePeriodSeconds: &terminationGracePeriod,
Volumes: []v1.Volume{
{