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.j23
1 files changed, 3 insertions, 0 deletions
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