mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-22 19:09:30 +01:00
24 lines
535 B
YAML
24 lines
535 B
YAML
|
apiVersion: monitoring.coreos.com/v1
|
||
|
kind: ServiceMonitor
|
||
|
metadata:
|
||
|
name: kube-apiserver
|
||
|
labels:
|
||
|
k8s-app: apiserver
|
||
|
spec:
|
||
|
jobLabel: component
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
component: apiserver
|
||
|
provider: kubernetes
|
||
|
namespaceSelector:
|
||
|
matchNames:
|
||
|
- default
|
||
|
endpoints:
|
||
|
- port: https
|
||
|
interval: 30s
|
||
|
scheme: https
|
||
|
tlsConfig:
|
||
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||
|
serverName: kubernetes
|
||
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|