prometheus.yaml 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: 400Mi
  12. securityContext:
  13. fsGroup: 2000
  14. runAsNonRoot: true
  15. runAsUser: 1000
  16. serviceAccountName: prometheus
  17. serviceMonitorSelector:
  18. matchExpressions:
  19. - key: name
  20. operator: In
  21. values:
  22. - kube-state-metrics
  23. - node-exporter
  24. - kubelet
  25. - traefik
  26. - rook-ceph-mgr
  27. - cloudflared
  28. - shelly-plug-exporter
  29. serviceMonitorNamespaceSelector:
  30. matchExpressions:
  31. - key: kubernetes.io/metadata.name
  32. operator: In
  33. values:
  34. - monitoring
  35. storage:
  36. volumeClaimTemplate:
  37. spec:
  38. accessModes:
  39. - ReadWriteOnce
  40. storageClassName: ceph-block
  41. resources:
  42. requests:
  43. storage: 100Gi