diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-06 19:02:27 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-06 19:08:21 +0100 |
commit | c5fad84c1abe4bd208a75e34a92c242b8bbaf9ff (patch) | |
tree | f6b38e47f00aa065295517b81be61515cc5247bb /roles/monitoring/alerta/templates | |
parent | alerta: test alertmanager silence integration (diff) |
alerta: add mailer
Diffstat (limited to 'roles/monitoring/alerta/templates')
-rw-r--r-- | roles/monitoring/alerta/templates/pod-spec.yml.j2 | 33 |
1 files changed, 29 insertions, 4 deletions
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: |