Starting with Kubernetes 1.6 `kubectl apply` works for TPRs so we can start using it, therefore using multiple files is no issue.
13 lines
243 B
YAML
13 lines
243 B
YAML
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]}
|