From c5fad84c1abe4bd208a75e34a92c242b8bbaf9ff Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 6 Mar 2022 19:02:27 +0100 Subject: alerta: add mailer --- roles/monitoring/alerta/templates/pod-spec.yml.j2 | 33 ++++++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'roles/monitoring/alerta/templates/pod-spec.yml.j2') diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2 index e31686e3..6edabae5 100644 --- a/roles/monitoring/alerta/templates/pod-spec.yml.j2 +++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2 @@ -1,9 +1,6 @@ containers: - name: alerta - image: "alerta/alerta-web:8.7.0" - resources: - limits: - memory: "1Gi" + image: "alerta-web-with-mailer:8.7.0" env: - name: "DATABASE_URL" value: "postgres://alerta:secret@127.0.0.1:5432/alerta" @@ -11,6 +8,10 @@ containers: value: "True" - name: "ADMIN_USERS" value: "admin" + - name: "DEBUG" + value: "1" + - name: "SUPERVISORD_LOG_LEVEL" + value: "warn" volumeMounts: - name: config mountPath: /app/alertad.conf.j2 @@ -37,6 +38,30 @@ containers: - name: postgres mountPath: /var/lib/postgresql/data +- name: redis + image: "redis:6.2.6" + args: + - redis-server + - --bind + - 127.0.0.1 + +- name: mailer + image: "alerta-web-with-mailer:8.7.0" + 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 + volumes: - name: config hostPath: -- cgit v1.2.3