2018-12-12 18:18:00 +01:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: Prometheus
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
prometheus: k8s
|
|
|
|
name: k8s
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
2019-02-04 21:07:37 +01:00
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- podAffinityTerm:
|
|
|
|
labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: prometheus
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- k8s
|
|
|
|
namespaces:
|
|
|
|
- monitoring
|
|
|
|
topologyKey: kubernetes.io/hostname
|
|
|
|
weight: 100
|
2018-12-12 18:18:00 +01:00
|
|
|
alerting:
|
|
|
|
alertmanagers:
|
|
|
|
- name: alertmanager-main
|
|
|
|
namespace: monitoring
|
|
|
|
port: web
|
2020-03-18 15:13:47 +01:00
|
|
|
externalUrl: http://prometheus.192.168.15.15.nip.io
|
|
|
|
image: prom/prometheus:v2.16.0
|
2018-12-12 18:18:00 +01:00
|
|
|
nodeSelector:
|
2019-08-08 22:09:53 +02:00
|
|
|
kubernetes.io/os: linux
|
2020-03-18 15:13:47 +01:00
|
|
|
podMonitorNamespaceSelector: {}
|
2019-08-08 22:09:53 +02:00
|
|
|
podMonitorSelector: {}
|
2018-12-12 18:18:00 +01:00
|
|
|
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: {}
|
2020-03-18 15:13:47 +01:00
|
|
|
version: v2.16.0
|