mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
29 lines
673 B
YAML
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
|