diff options
Diffstat (limited to 'roles/monitoring/alerta/templates')
-rw-r--r-- | roles/monitoring/alerta/templates/pod-spec.yml.j2 | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2 new file mode 100644 index 00000000..6edabae5 --- /dev/null +++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2 @@ -0,0 +1,73 @@ +containers: +- name: alerta + image: "alerta-web-with-mailer:8.7.0" + env: + - name: "DATABASE_URL" + value: "postgres://alerta:secret@127.0.0.1:5432/alerta" + - name: "AUTH_REQUIRED" + 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 + subPath: alertad.conf.j2 + readOnly: true + ports: + - containerPort: 8080 + hostPort: 8080 + +- name: postgresql + image: "postgres:14.2" + args: + - postgres + - -c + - listen_addresses=127.0.0.1 + env: + - name: "POSTGRES_DB" + value: "alerta" + - name: "POSTGRES_USER" + value: "alerta" + - name: "POSTGRES_PASSWORD" + value: "secret" + volumeMounts: + - 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: + path: "{{ alerta_base_path }}/config" + type: Directory +- name: postgres + hostPath: + path: "{{ alerta_base_path }}/postgres" + type: Directory |