22 lines
542 B
Django/Jinja
22 lines
542 B
Django/Jinja
apiVersion: monitoring.coreos.com/v1alpha1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: k8s-apps-https
|
|
labels:
|
|
k8s-apps: https
|
|
spec:
|
|
jobLabel: k8s-app
|
|
selector:
|
|
matchExpressions:
|
|
- {key: k8s-app, operator: Exists}
|
|
namespaceSelector:
|
|
matchNames:
|
|
- kube-system
|
|
endpoints:
|
|
- port: https-metrics
|
|
interval: 15s
|
|
scheme: https
|
|
tlsConfig:
|
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
|
insecureSkipVerify: true
|
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|