github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-prometheus.yaml (about) 1 apiVersion: monitoring.coreos.com/v1 2 kind: Prometheus 3 metadata: 4 labels: 5 prometheus: k8s 6 name: k8s 7 namespace: monitoring 8 spec: 9 alerting: 10 alertmanagers: 11 - name: alertmanager-main 12 namespace: monitoring 13 port: web 14 baseImage: quay.io/prometheus/prometheus 15 nodeSelector: 16 beta.kubernetes.io/os: linux 17 replicas: 1 18 resources: 19 requests: 20 memory: 400Mi 21 retention: '48h' 22 ruleSelector: 23 matchLabels: 24 prometheus: k8s 25 role: alert-rules 26 securityContext: 27 fsGroup: 2000 28 runAsNonRoot: true 29 runAsUser: 1000 30 serviceAccountName: prometheus-k8s 31 serviceMonitorNamespaceSelector: {} 32 serviceMonitorSelector: {} 33 version: v2.7.2