diff --git a/chart/templates/haproxy/values.yaml b/chart/templates/haproxy/values.yaml index d841d9877e3e10049030a43debe56b1e3bafe538..66dfc0d219bb14030f849659224c95cad5091651 100644 --- a/chart/templates/haproxy/values.yaml +++ b/chart/templates/haproxy/values.yaml @@ -65,26 +65,32 @@ config: | unique-id-format %{+X}o\ 1-%[date,hex,bytes(8,8),lower]-%[capture.req.hdr(3)] http-request set-header X-Amzn-Trace-Id Root=%[unique-id,lower] bind :8080 +{{- if and .Values.istio.sso.enabled }} acl host_kiali hdr(host) -i kiali.{{ .Values.hostname }} acl host_tracing hdr(host) -i tracing.{{ .Values.hostname }} +{{- end }} {{- if and .Values.monitoring.enabled .Values.monitoring.sso.enabled }} acl host_alertmanager hdr(host) -i alertmanager.{{ .Values.hostname }} acl host_prometheus hdr(host) -i prometheus.{{ .Values.hostname }} {{- end }} option forwardfor +{{- if and .Values.istio.sso.enabled }} use_backend kiali_main if host_kiali use_backend tracing_main if host_tracing +{{- end }} {{- if and .Values.monitoring.enabled .Values.monitoring.sso.enabled }} use_backend alertmanager_main if host_alertmanager use_backend prometheus_main if host_prometheus {{- end }} +{{- if and .Values.istio.sso.enabled }} backend kiali_main mode http server kiali kiali.istio-system.svc.cluster.local:20001 backend tracing_main mode http server jaeger tracing.istio-system.svc.cluster.local:80 +{{- end }} {{- if and .Values.monitoring.enabled .Values.monitoring.sso.enabled }} backend alertmanager_main mode http