github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/kube-prometheus/kube-state-metrics-serviceMonitor.yaml (about)

     1  apiVersion: monitoring.coreos.com/v1
     2  kind: ServiceMonitor
     3  metadata:
     4    labels:
     5      k8s-app: kube-state-metrics
     6    name: kube-state-metrics
     7    namespace: monitoring
     8  spec:
     9    endpoints:
    10    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    11      honorLabels: true
    12      interval: 30s
    13      port: https-main
    14      scheme: https
    15      scrapeTimeout: 30s
    16      tlsConfig:
    17        insecureSkipVerify: true
    18    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    19      interval: 30s
    20      port: https-self
    21      scheme: https
    22      tlsConfig:
    23        insecureSkipVerify: true
    24    jobLabel: k8s-app
    25    selector:
    26      matchLabels:
    27        k8s-app: kube-state-metrics