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, 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: