-
Notifications
You must be signed in to change notification settings - Fork 472
/
prometheus-dep.yml
70 lines (70 loc) · 1.82 KB
/
prometheus-dep.yml
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
65
66
67
68
69
70
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: openfaas
component: prometheus
name: prometheus
namespace: "openfaas"
spec:
replicas: 1
selector:
matchLabels:
app: prometheus
template:
metadata:
labels:
app: prometheus
annotations:
sidecar.istio.io/inject: "true"
checksum/prometheus-config: "2d9071238796c46636e4387ce7a611c2c78706ce0faaf3845d0b4a86c4bf0d4d"
spec:
serviceAccountName: openfaas-prometheus
containers:
- name: prometheus
resources:
requests:
memory: 125Mi
image: prom/prometheus:v2.11.0
command:
- "prometheus"
- "--config.file=/etc/prometheus/prometheus.yml"
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /-/healthy
port: 9090
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /-/healthy
port: 9090
timeoutSeconds: 30
ports:
- containerPort: 9090
protocol: TCP
volumeMounts:
- mountPath: /etc/prometheus/prometheus.yml
name: prometheus-config
subPath: prometheus.yml
- mountPath: /etc/prometheus/alert.rules.yml
name: prometheus-config
subPath: alert.rules.yml
- mountPath: /prometheus/data
name: prom-data
volumes:
- name: prometheus-config
configMap:
name: prometheus-config
items:
- key: prometheus.yml
path: prometheus.yml
mode: 0644
- key: alert.rules.yml
path: alert.rules.yml
mode: 0644
- name: prom-data
emptyDir: {}
nodeSelector:
beta.kubernetes.io/arch: arm64