prometheus operator v0.93.1

ScrapeConfig.spec.kubernetesSDConfigs[].oauth2.clientId.secret.spec.kubernetesSDConfigs.selectors

selectors defines the selector to select objects. It requires Prometheus >= v2.17.0

3 fields
ScrapeConfig.spec.kubernetesSDConfigs[].oauth2.clientId.secret.spec.kubernetesSDConfigs.selectors fields and descriptions
Field / TypeDescription
field
string

field defines an optional field selector to limit the service discovery to resources which have fields with specific values. e.g: `metadata.name=foobar`

  • minLength: 1
label
string

label defines an optional label selector to limit the service discovery to resources with specific labels and label values. e.g: `node.kubernetes.io/instance-type=master`

  • minLength: 1
role
string required

role defines the type of Kubernetes resource to limit the service discovery to. Accepted values are: Node, Pod, Endpoints, EndpointSlice, Service, Ingress.

  • enum: ["Pod","Endpoints","Ingress","Service","Node","EndpointSlice"]