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
251 B
YAML
13 lines
251 B
YAML
apiVersion: monitoring.coreos.com/v1alpha1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
alertmanager: main
|
|
name: alertmanager
|
|
spec:
|
|
endpoints:
|
|
- port: web
|
|
selector:
|
|
matchExpressions:
|
|
- {key: alertmanager, operator: In, values: [main]}
|