prometheus.yaml 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: 7d
  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. serviceMonitorNamespaceSelector:
  29. matchExpressions:
  30. - key: kubernetes.io/metadata.name
  31. operator: In
  32. values:
  33. - monitoring
  34. storage:
  35. volumeClaimTemplate:
  36. spec:
  37. accessModes:
  38. - ReadWriteOnce
  39. storageClassName: ceph-block
  40. resources:
  41. requests:
  42. storage: 20Gi