prometheus.yaml 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. serviceAccountName: prometheus
  19. serviceMonitorSelector: {}
  20. # matchExpressions:
  21. # - key: name
  22. # operator: In
  23. # values:
  24. # - kube-state-metrics
  25. # - node-exporter
  26. # - kubelet
  27. # - traefik
  28. # - rook-ceph-mgr
  29. # - rook-ceph-exporter
  30. # - cloudflared
  31. # - shelly-plug-exporter
  32. serviceMonitorNamespaceSelector: {}
  33. # matchExpressions:
  34. # - key: kubernetes.io/metadata.name
  35. # operator: In
  36. # values:
  37. # - monitoring
  38. # - rook-ceph
  39. storage:
  40. volumeClaimTemplate:
  41. spec:
  42. accessModes:
  43. - ReadWriteOnce
  44. storageClassName: ceph-block
  45. resources:
  46. requests:
  47. storage: 100Gi