Hi Team, first time trying to install on AKS. Got ...
# support
d
Hi Team, first time trying to install on AKS. Got the following error from Alertmanager:
Copy code
level=info ts=2022-10-03T14:36:20.440Z caller=main.go:237 msg="Starting Alertmanager" version="(version=0.23.0, branch=release/v0.23.0-0.2, revision=f3e6c2166de499b7a9b8f53de278ddd56f3ded07)"
level=info ts=2022-10-03T14:36:20.440Z caller=main.go:238 build_context="(go=go1.17.7, user=ec2-user@ip-172-31-17-99.us-east-2.compute.internal, date=20220816-10:29:54)"
level=warn ts=2022-10-03T14:36:20.442Z caller=cluster.go:177 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
level=error ts=2022-10-03T14:36:20.443Z caller=main.go:268 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided
I haven’t change the config and my replica count is 1 with
additionalPeers: []
From exploring on the web this has something to do with the following condition that’s not accessed ( replicaCount == 1 , additionalPeers = [])
Copy code
{{- if or (gt (int .Values.alertmanager.replicaCount) 1) (.Values.alertmanager.additionalPeers) }}
            - --cluster.advertise-address=$(POD_IP):9094
            - --cluster.listen-address=0.0.0.0:9094
 {{- end }}
Please let me know if you have any suggestions.
a
cc: @Prashant Shahi
d
When I move the following line
- --cluster.advertise-address=$(POD_IP):9094
outside the condition the pod starts correctly:
Copy code
level=info ts=2022-10-03T14:53:30.009Z caller=main.go:237 msg="Starting Alertmanager" version="(version=0.23.0, branch=release/v0.23.0-0.2, revision=f3e6c2166de499b7a9b8f53de278ddd56f3ded07)"
level=info ts=2022-10-03T14:53:30.009Z caller=main.go:238 build_context="(go=go1.17.7, user=ec2-user@ip-172-31-17-99.us-east-2.compute.internal, date=20220816-10:29:54)"
level=info ts=2022-10-03T14:53:30.010Z caller=cluster.go:679 component=cluster msg="Waiting for gossip to settle..." interval=2s
level=info ts=2022-10-03T14:53:30.046Z caller=coordinator.go:141 component=configuration msg="Loading a new configuration"
level=warn ts=2022-10-03T14:53:30.065Z caller=configLoader.go:61 component=configuration msg="No channels found in query service "
level=info ts=2022-10-03T14:53:30.065Z caller=coordinator.go:156 component=configuration msg="Completed loading of configuration file"
RouteOpts: {default-receiver map[alertname:{}] false 30s 5m0s 4h0m0s []}
RouteOpts: {default-receiver map[alertname:{}] false 30s 5m0s 4h0m0s []}
RouteOpts: {default-receiver map[alertname:{}] false 30s 5m0s 4h0m0s []}
level=info ts=2022-10-03T14:53:30.069Z caller=main.go:570 msg=Listening address=:9093
level=info ts=2022-10-03T14:53:30.070Z caller=tls_config.go:191 msg="TLS is disabled." http2=false
level=info ts=2022-10-03T14:53:32.011Z caller=cluster.go:704 component=cluster msg="gossip not settled" polls=0 before=0 now=1 elapsed=2.000148286s
level=info ts=2022-10-03T14:53:40.012Z caller=cluster.go:696 component=cluster msg="gossip settled; proceeding" elapsed=10.001538389s