From 10c2b1a4f2f2cb14337a91f136d152ec196aa5a0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 29 Apr 2024 21:26:15 +0200 Subject: monitoiring/alerta: support publishment via nginx vhost --- roles/monitoring/alerta/templates/pod-spec.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/monitoring/alerta/templates') diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2 index 9ce20988..5523b621 100644 --- a/roles/monitoring/alerta/templates/pod-spec.yml.j2 +++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2 @@ -29,6 +29,9 @@ containers: {% endif %} ports: - containerPort: 8080 +{% if alerta_web_nginx_vhost is defined %} + hostIP: "127.0.0.1" +{% endif %} hostPort: {{ alerta_web_port }} - name: postgresql -- cgit v1.2.3