loki
loki copied to clipboard
[helm] Error starting SimpleScalable without Gateway (using Ingress)
The definition of loki.host its wrong when use deploymentMode SimpleScalable and ingress (gateway off)
{{/* Determine the public host for the Loki cluster */}}
{{- define "loki.host" -}}
{{- $isSingleBinary := eq (include "loki.deployment.isSingleBinary" .) "true" -}}
{{- $url := printf "%s.%s.svc.%s.:%s" (include "loki.gatewayFullname" .) .Release.Namespace .Values.global.clusterDomain (.Values.gateway.service.port | toString) }}
{{- if and $isSingleBinary (not .Values.gateway.enabled) }}
{{- $url = printf "%s.%s.svc.%s.:%s" (include "loki.singleBinaryFullname" .) .Release.Namespace .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
{{- end }}
{{- printf "%s" $url -}}
{{- end -}}
At end of that execution, the url use loki.gatewayFullname for generate the loki host
{{/*
gateway fullname
*/}}
{{- define "loki.gatewayFullname" -}}
{{ include "loki.fullname" . }}-gateway
{{- end }}
but that service does not exist when use ingress instead gateway,
{{- if .Values.gateway.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "loki.gatewayFullname" . }}
...
{{- end }}
i think need to use read service instead
This issue also hits, Loki Canary, which just fails because it tries to hit the non-existent gateway, and there are no options to override it in the chart.
Having the same issue. Very surprised that such important and easy noticeable issue remains unaddressed for so long.
Same issue