2024-12-20 11:03:26 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
name: kubelet-metrics
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: kubelet
|
|
|
|
endpoints:
|
2024-12-20 11:07:01 +00:00
|
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
|
|
path: /metrics
|
|
|
|
port: https-metrics
|
|
|
|
scheme: https
|
|
|
|
tlsConfig:
|
|
|
|
insecureSkipVerify: true
|