mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-25 19:05:44 +01:00
46 lines
992 B
YAML
46 lines
992 B
YAML
|
apiVersion: monitoring.coreos.com/v1
|
||
|
kind: Prometheus
|
||
|
metadata:
|
||
|
labels:
|
||
|
prometheus: k8s
|
||
|
name: k8s
|
||
|
namespace: monitoring
|
||
|
spec:
|
||
|
alerting:
|
||
|
alertmanagers:
|
||
|
- name: alertmanager-main
|
||
|
namespace: monitoring
|
||
|
port: web
|
||
|
baseImage: carlosedp/prometheus
|
||
|
externalUrl: http://prometheus.internal.carlosedp.com
|
||
|
nodeSelector:
|
||
|
beta.kubernetes.io/os: linux
|
||
|
replicas: 1
|
||
|
resources:
|
||
|
requests:
|
||
|
memory: 400Mi
|
||
|
retention: 15d
|
||
|
ruleSelector:
|
||
|
matchLabels:
|
||
|
prometheus: k8s
|
||
|
role: alert-rules
|
||
|
securityContext:
|
||
|
fsGroup: 2000
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 1000
|
||
|
serviceAccountName: prometheus-k8s
|
||
|
serviceMonitorNamespaceSelector: {}
|
||
|
serviceMonitorSelector: {}
|
||
|
storage:
|
||
|
volumeClaimTemplate:
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 20Gi
|
||
|
storageClassName: nfs-ssd-node1
|
||
|
version: v2.5.0
|