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.j233
1 files changed, 13 insertions, 20 deletions
diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2
index c39ec080..9ce20988 100644
--- a/roles/monitoring/alerta/templates/pod-spec.yml.j2
+++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2
@@ -1,6 +1,6 @@
containers:
- name: alerta
- image: "alerta-web-with-mailer:{{ alerta_web_version }}"
+ image: "alerta/alerta-web:{{ alerta_web_version }}-custom"
env:
- name: "DATABASE_URL"
value: "postgres://alerta:{{ alerta_postgres_password }}@127.0.0.1:5432/alerta"
@@ -10,8 +10,6 @@ containers:
value: "admin"
- name: "SECRET_KEY"
value: "{{ alerta_web_secret_key }}"
- - name: "DEBUG"
- value: "1"
- name: "SUPERVISORD_LOG_LEVEL"
value: "warn"
volumeMounts:
@@ -19,6 +17,16 @@ containers:
mountPath: /app/alertad.conf.j2
subPath: alertad.conf.j2
readOnly: true
+ - name: config
+ mountPath: /app/alerta.conf.j2
+ subPath: alerta.conf.j2
+ readOnly: true
+{% if alerta_mailer is defined %}
+ - name: config
+ mountPath: /app/email.tmpl
+ subPath: email.tmpl
+ readOnly: true
+{% endif %}
ports:
- containerPort: 8080
hostPort: {{ alerta_web_port }}
@@ -39,6 +47,7 @@ containers:
volumeMounts:
- name: postgres
mountPath: /var/lib/postgresql/data
+{% if 'amqp' in alerta_plugins %}
- name: redis
image: "redis:{{ alerta_redis_version }}"
@@ -46,23 +55,7 @@ containers:
- redis-server
- --bind
- 127.0.0.1
-
-- name: mailer
- image: "alerta-web-with-mailer:{{ alerta_web_version }}"
- command:
- - alerta-mailer
- env:
- - name: "ALERTA_CONF_FILE"
- value: "/app/alerta-mailer.conf"
- volumeMounts:
- - name: config
- mountPath: /app/alerta-mailer.conf
- subPath: alerta-mailer.conf
- readOnly: true
- - name: config
- mountPath: /app/email.tmpl
- subPath: email.tmpl
- readOnly: true
+{% endif %}
volumes:
- name: config