kube-prometheus: extract ServiceMonitors into single files
Starting with Kubernetes 1.6 `kubectl apply` works for TPRs so we can start using it, therefore using multiple files is no issue.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: prometheus
|
||||
labels:
|
||||
prometheus: k8s
|
||||
spec:
|
||||
endpoints:
|
||||
- port: web
|
||||
selector:
|
||||
matchExpressions:
|
||||
- {key: prometheus, operator: In, values: [k8s]}
|
||||
Reference in New Issue
Block a user