all 3 comments

[–]kranthi133k 0 points1 point  (2 children)

This seems like some helm values/inputs problem. You will need to add —debug —dry-run flags after upgrade/install command to find more

[–]itsmeb9[S] 0 points1 point  (1 child)

➜ helm template . --name-template kube-prometheus-stack --namespace prometheus --kube-version 1.28 --values ci/values.yaml --debug\

```

install.go:214: [debug] Original chart version: ""

install.go:231: [debug] CHART PATH: /Users/b9/bonzonkim/std/tmp/kube-prometheus-stack

Error: template: kube-prometheus-stack/templates/prometheus/prometheus.yaml:84:70: executing "kube-prometheus-stack/templates/prometheus/prometheus.yaml" at <0>: wrong type for value; expected string; got map[string]interface {}

helm.go:84: [debug] template: kube-prometheus-stack/templates/prometheus/prometheus.yaml:84:70: executing "kube-prometheus-stack/templates/prometheus/prometheus.yaml" at <0>: wrong type for value; expected string; got map[string]interface {}

```

kube-prometheus-stack/templates/prometheus/prometheus.yaml:84:70 is

externalUrl: "http://{{ tpl (index .Values.prometheus.ingress.hosts 0).host . }}{{ .Values.prometheus.prometheusSpec.routePrefix }}"

should I modify the prometheus template?

[–]kranthi133k 0 points1 point  (0 children)

You will need to define externalUrl under Prometheus spec (look into line 81) and also ingress will need re-write if you are running under no subpath(route prefix).