Open blezoray opened 1 year ago
I think the issue is in the _helpers.tpl file, here.
It should be loki.name
instead of loki.fullname
.
{{/*
Ingress service name helper function
Params:
ctx = . context
svcName = service name without the "loki.fullname" part (ie. read, write)
*/}}
{{- define "loki.ingress.serviceName" -}}
{{- if (eq .svcName "singleBinary") }}
{{- printf "%s" (include "loki.name" .ctx) }}
{{- else }}
{{- printf "%s-%s" (include "loki.name" .ctx) .svcName }}
{{- end -}}
{{- end -}}
:sob: still an issue!
still an issue :(
However, with Flux a postRenderer can be used to get around it:
postRenderers:
- kustomize:
patchesJson6902:
- target:
kind: Ingress
name: <your generated ingress name>
patch:
- op: replace
path: /spec/rules/0/http/paths/0/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/1/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/2/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/3/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/4/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/5/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/6/backend/service/name
value: loki-read
- op: replace
path: /spec/rules/0/http/paths/7/backend/service/name
value: loki-write
- op: replace
path: /spec/rules/0/http/paths/8/backend/service/name
value: loki-write
Still broken in 5.8.4 after two major releases and six months.
We managed to work around the issue using fullnameOverride: loki
in values.yaml
.
Hello,
I use the helm chart 3.8.0 with the following values.yaml. My release name is
monitoring
It generates this ingress:
But the service name is
loki
and notmonitoring-loki
Could you verify this issue in the ingress or service ?
Rgds.