-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathdeployment.yaml
More file actions
66 lines (66 loc) · 1.8 KB
/
deployment.yaml
File metadata and controls
66 lines (66 loc) · 1.8 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: elastalert
name: elastalert
spec:
replicas: 1
selector:
matchLabels:
app: elastalert
template:
metadata:
labels:
app: elastalert
spec:
volumes:
- name: config-yaml
configMap:
name: elastalert-configs
items:
- key: config.yaml
path: config.yaml
- name: config-test-yaml
configMap:
name: elastalert-configs
items:
- key: config-test.yaml
path: config-test.yaml
- name: config-json
configMap:
name: elastalert-configs
items:
- key: config.json
path: config.json
- name: rule-templates
configMap:
name: rule-templates
- name: rules-dir
persistentVolumeClaim:
claimName: rules-dir
containers:
- image: bitsensor/elastalert:3.0.0-beta.0
name: elastalert
env:
- name: ES_USERNAME
value: elastic
- name: ES_PASSWORD
valueFrom:
secretKeyRef:
name: elastic-cluster-es-elastic-user
key: elastic
volumeMounts:
- name: rules-dir
mountPath: /opt/elastalert/rules
- name: config-yaml
mountPath: /opt/elastalert/config.yaml
subPath: config.yaml
- name: config-test-yaml
mountPath: /opt/elastalert/config-test.yaml
subPath: config-test.yaml
- name: config-json
mountPath: /opt/elastalert-server/config/config.json
subPath: config.json
- name: rule-templates
mountPath: /opt/elastalert/rule_templates