prometheus.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: 365d
  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. ruleSelector: # {} # does this pick up nothing if nil?
  27. matchLabels:
  28. role: alert-rules
  29. ruleNamespaceSelector: {}
  30. # matchExpressions:
  31. # - key: name
  32. # operator: In
  33. # values:
  34. # - kube-state-metrics
  35. # - node-exporter
  36. # - kubelet
  37. # - traefik
  38. # - rook-ceph-mgr
  39. # - rook-ceph-exporter
  40. # - cloudflared
  41. # - shelly-plug-exporter
  42. # matchExpressions:
  43. # - key: kubernetes.io/metadata.name
  44. # operator: In
  45. # values:
  46. # - monitoring
  47. # - rook-ceph
  48. storage:
  49. volumeClaimTemplate:
  50. spec:
  51. accessModes:
  52. - ReadWriteOnce
  53. storageClassName: ceph-block
  54. resources:
  55. requests:
  56. storage: 100Gi