-
Notifications
You must be signed in to change notification settings - Fork 3
/
prometheus-prometheus.yaml
64 lines (63 loc) · 1.39 KB
/
prometheus-prometheus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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: registry-vpc.cn-shenzhen.aliyuncs.com/****/prometheus
nodeSelector:
# beta.kubernetes.io/os: linux
dedicatedfor: publicservice
replicas: 1
additionalScrapeConfigs:
name: additional-scrape-configs
key: prometheus-additional.yaml
resources:
requests:
memory: 2Gi
limits:
memory: 4Gi
ruleSelector:
matchLabels:
prometheus: k8s
role: alert-rules
securityContext:
fsGroup: 2000
runAsNonRoot: false
runAsUser: 0
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
version: v2.5.0
storage:
volumeClaimTemplate:
spec:
selector:
matchLabels:
app: prometheus-data
resources:
requests:
storage: 50Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: prometheus-pv
labels:
app: prometheus-data
spec:
capacity:
storage: 50Gi
persistentVolumeReclaimPolicy: Delete
accessModes:
- ReadWriteOnce # required
nfs:
server: 2d****0e-vcm27.cn-shenzhen.nas.aliyuncs.com
path: "/prometheus"