apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kube-state-metrics
labels:
monitor: main
spec:
selector:
matchLabels:
managed-by: kustomize
app: kube-state-metrics
endpoints:
- port: http-metrics
path: /metrics
honorLabels: true