HAProxy crashes when monitoring is disabled
Bug
Description
When attempting to deploy with Istio and AuthService enabled, but Monitoring disabled, HA Proxy deploys and crashes because it cannot find services for alert manager and Prometheus. It should not be looking for these since monitoring.enabled: false
is set.
Log messages from authservice/authservice-haproxy-sso
pod:
[NOTICE] 082/161823 (1) : haproxy version is 2.2.2
[NOTICE] 082/161823 (1) : path to executable is /usr/local/sbin/haproxy
[ALERT] 082/161823 (1) : parsing [/usr/local/etc/haproxy/haproxy.cfg:79] : 'server alertmanager' : could not resolve address 'monitoring-monitoring-kube-alertmanager.monitoring.svc.cluster.local'.
[ALERT] 082/161823 (1) : parsing [/usr/local/etc/haproxy/haproxy.cfg:84] : 'server prometheus' : could not resolve address 'monitoring-monitoring-kube-prometheus.monitoring.svc.cluster.local'.
[ALERT] 082/161823 (1) : Failed to initialize server(s) addr.
BigBang Version
1.2.0