apiVersion: monitoring.coreos.com/v1 kind: Prometheus metadata: name: prometheus namespace: monitoring labels: prometheus: prometheus spec: serviceAccountName: prometheus #resources: # limits: # cpu: 200m # memory: 200Mi # requests: # cpu: 100m # memory: 100Mi securityContext: runAsUser: 1001 alerting: alertmanagers: - namespace: monitoring name: alertmanager port: web serviceMonitorSelector: matchLabels: team: undercloud ruleSelector: matchLabels: role: alert-rules prometheus: prometheus ruleNamespaceSelector: {} # matchLabels: # team: undercloud #resources: # requests: # memory: 400Mi serviceMonitorNamespaceSelector: matchLabels: prometheus: prometheus probeNamespaceSelector: {} probeSelector: {} --- apiVersion: v1 kind: Service metadata: name: prometheus namespace: monitoring spec: ipFamilies: - IPv6 - IPv4 ipFamilyPolicy: PreferDualStack ports: - name: web port: 9090 protocol: TCP targetPort: web selector: prometheus: prometheus