rpi.carlosedp.cluster-monit.../manifests/prometheus/prometheus-k8s-service-monitor-kube-state-metrics.yaml
2018-03-01 19:03:53 -05:00

29 lines
673 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kube-state-metrics
labels:
k8s-app: kube-state-metrics
spec:
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: kube-state-metrics
namespaceSelector:
matchNames:
- monitoring
endpoints:
- port: http-main
#scheme: https
interval: 30s
honorLabels: true
#bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
#tlsConfig:
# insecureSkipVerify: true
- port: http-self
# scheme: https
interval: 30s
# bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
# tlsConfig:
# insecureSkipVerify: true