summaryrefslogtreecommitdiff
path: root/roles/monitoring/alerta/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/alerta/templates/pod-spec.yml.j2')
-rw-r--r--roles/monitoring/alerta/templates/pod-spec.yml.j216
1 files changed, 9 insertions, 7 deletions
diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2
index 6edabae5..c39ec080 100644
--- a/roles/monitoring/alerta/templates/pod-spec.yml.j2
+++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2
@@ -1,13 +1,15 @@
containers:
- name: alerta
- image: "alerta-web-with-mailer:8.7.0"
+ image: "alerta-web-with-mailer:{{ alerta_web_version }}"
env:
- name: "DATABASE_URL"
- value: "postgres://alerta:secret@127.0.0.1:5432/alerta"
+ value: "postgres://alerta:{{ alerta_postgres_password }}@127.0.0.1:5432/alerta"
- name: "AUTH_REQUIRED"
value: "True"
- name: "ADMIN_USERS"
value: "admin"
+ - name: "SECRET_KEY"
+ value: "{{ alerta_web_secret_key }}"
- name: "DEBUG"
value: "1"
- name: "SUPERVISORD_LOG_LEVEL"
@@ -19,10 +21,10 @@ containers:
readOnly: true
ports:
- containerPort: 8080
- hostPort: 8080
+ hostPort: {{ alerta_web_port }}
- name: postgresql
- image: "postgres:14.2"
+ image: "postgres:{{ alerta_postgres_version }}"
args:
- postgres
- -c
@@ -33,20 +35,20 @@ containers:
- name: "POSTGRES_USER"
value: "alerta"
- name: "POSTGRES_PASSWORD"
- value: "secret"
+ value: "{{ alerta_postgres_password }}"
volumeMounts:
- name: postgres
mountPath: /var/lib/postgresql/data
- name: redis
- image: "redis:6.2.6"
+ image: "redis:{{ alerta_redis_version }}"
args:
- redis-server
- --bind
- 127.0.0.1
- name: mailer
- image: "alerta-web-with-mailer:8.7.0"
+ image: "alerta-web-with-mailer:{{ alerta_web_version }}"
command:
- alerta-mailer
env: