blob: e31686e3c54cfb4b4ad0d0a26bfbd4dd47b1fb30 (
plain) (
blame)
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
|
containers:
- name: alerta
image: "alerta/alerta-web:8.7.0"
resources:
limits:
memory: "1Gi"
env:
- name: "DATABASE_URL"
value: "postgres://alerta:secret@127.0.0.1:5432/alerta"
- name: "AUTH_REQUIRED"
value: "True"
- name: "ADMIN_USERS"
value: "admin"
volumeMounts:
- name: config
mountPath: /app/alertad.conf.j2
subPath: alertad.conf.j2
readOnly: true
ports:
- containerPort: 8080
hostPort: 8080
- name: postgresql
image: "postgres:14.2"
args:
- postgres
- -c
- listen_addresses=127.0.0.1
env:
- name: "POSTGRES_DB"
value: "alerta"
- name: "POSTGRES_USER"
value: "alerta"
- name: "POSTGRES_PASSWORD"
value: "secret"
volumeMounts:
- name: postgres
mountPath: /var/lib/postgresql/data
volumes:
- name: config
hostPath:
path: "{{ alerta_base_path }}/config"
type: Directory
- name: postgres
hostPath:
path: "{{ alerta_base_path }}/postgres"
type: Directory
|