diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-11 20:58:38 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-11 20:58:38 +0100 |
commit | 4930ff68c7d699611511aaabd2c2ebe585207051 (patch) | |
tree | 8f4ec6f7d588a9938138a65a470ad8c2d044e8ae /roles/monitoring/alerta/templates/pod-spec.yml.j2 | |
parent | improvements and fixes for alerta role (diff) |
alerta: improve support for mailer
Diffstat (limited to 'roles/monitoring/alerta/templates/pod-spec.yml.j2')
-rw-r--r-- | roles/monitoring/alerta/templates/pod-spec.yml.j2 | 33 |
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 |