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:
parent
81b1e1d814
commit
37f3002b35
2 changed files with 3 additions and 0 deletions
pkg
|
@ -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...
|
||||
|
|
|
@ -265,6 +265,7 @@ func makeStatefulSetSpec(p v1alpha1.Prometheus) v1beta1.StatefulSetSpec {
|
|||
},
|
||||
},
|
||||
},
|
||||
NodeSelector: p.Spec.NodeSelector,
|
||||
TerminationGracePeriodSeconds: &terminationGracePeriod,
|
||||
Volumes: []v1.Volume{
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue