apiVersion: monitoring.coreos.com/v1 kind: Prometheus metadata: name: prometheus labels: prometheus: k8s namespace: prometheus-operator spec: replicas: 2 serviceAccountName: prometheus securityContext: {} serviceMonitorSelector: matchLabels: team: frontend ruleSelector: matchLabels: role: prometheus-rulefiles prometheus: k8s alerting: alertmanagers: - namespace: prometheus-operator name: alertmanager-main port: web