rpi.carlosedp.cluster-monit.../manifests-old/prometheus/prometheus-k8s.yaml

40 lines
963 B
YAML
Raw Normal View History

2018-03-02 01:03:53 +01:00
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: k8s
labels:
prometheus: k8s
spec:
replicas: 1
baseImage: carlosedp/prometheus
2018-05-16 19:11:32 +02:00
version: v2.2.1
2018-03-02 01:03:53 +01:00
retention: "168h"
serviceAccountName: prometheus-k8s
serviceMonitorSelector:
matchExpressions:
- {key: k8s-app, operator: Exists}
ruleSelector:
matchLabels:
role: prometheus-rulefiles
prometheus: k8s
resources:
requests:
# 2Gi is default, but won't schedule if you don't have a node with >2Gi
# memory. Modify based on your target and time-series count for
# production use. This value is mainly meant for demonstration/testing
# purposes.
2018-05-16 19:11:32 +02:00
memory: 512Mi
2018-03-02 01:03:53 +01:00
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager-main
port: web
storage:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi