From 29730a4bc168913d5dad6d9e487d2dc58a0e3c86 Mon Sep 17 00:00:00 2001 From: diwilli Date: Wed, 28 Oct 2020 17:43:05 +0000 Subject: [PATCH] cephadm: Set listen-addresses on alertmanager container This explicitly passes web.listen-address and cluster.listen-address to the alertmanager container allowing the use of public IP addresses. Fixes: https://tracker.ceph.com/issues/48031 Signed-off-by: Dan Williams --- src/cephadm/cephadm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index f19d8ae03fe..9b37113f906 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -197,7 +197,10 @@ class Monitoring(object): "image": "docker.io/prom/alertmanager:v0.20.0", "cpus": "2", "memory": "2GB", - "args": [], + "args": [ + "--web.listen-address=:{}".format(port_map['alertmanager'][0]), + "--cluster.listen-address=:{}".format(port_map['alertmanager'][1]), + ], "config-json-files": [ "alertmanager.yml", ], -- 2.47.3