prometheus.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apiVersion: monitoring.coreos.com/v1
  2. kind: Prometheus
  3. metadata:
  4. name: prometheus-persistant
  5. namespace: monitoring
  6. spec:
  7. replicas: 1
  8. retention: 30d
  9. resources:
  10. requests:
  11. memory: '0'
  12. limits:
  13. memory: 1Gi
  14. securityContext:
  15. fsGroup: 2000
  16. runAsNonRoot: true
  17. runAsUser: 1000
  18. alerting:
  19. alertmanagers:
  20. - namespace: monitoring
  21. name: alertmanager-operated
  22. port: web
  23. serviceAccountName: prometheus
  24. serviceMonitorSelector: {}
  25. serviceMonitorNamespaceSelector: {}
  26. podMonitorSelector: {}
  27. ruleSelector: # {} # does this pick up nothing if nil?
  28. matchLabels:
  29. role: alert-rules
  30. ruleNamespaceSelector: {}
  31. # matchExpressions:
  32. # - key: name
  33. # operator: In
  34. # values:
  35. # - kube-state-metrics
  36. # - node-exporter
  37. # - kubelet
  38. # - traefik
  39. # - rook-ceph-mgr
  40. # - rook-ceph-exporter
  41. # - cloudflared
  42. # - shelly-plug-exporter
  43. # matchExpressions:
  44. # - key: kubernetes.io/metadata.name
  45. # operator: In
  46. # values:
  47. # - monitoring
  48. # - rook-ceph
  49. storage:
  50. volumeClaimTemplate:
  51. spec:
  52. accessModes:
  53. - ReadWriteOnce
  54. storageClassName: ceph-block-ssd
  55. resources:
  56. requests:
  57. storage: 50Gi