c12s-kubespray/roles/kubernetes-apps/prometheus/templates/k8s-prometheus.yml.j2
2017-02-28 07:59:58 -06:00

25 lines
708 B
Django/Jinja

apiVersion: monitoring.coreos.com/v1alpha1
kind: Prometheus
metadata:
name: k8s
labels:
prometheus: k8s
spec:
version: "{{ prometheus_image_tag }}"
baseImage: "{{ prometheus_image_repo }}"
serviceMonitorSelector:
matchExpression:
- {key: k8s-apps, operator: Exists}
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.
memory: {{ prometheus_mem_requests }}
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager-main
port: web