Helm upgrade fails with error: expects ” or n, but found t

I ran into a similar problem and apparently it turns out Kubernetes’s Pod specification requires environment variable values to be coerced as strings, so integers need to be passed through quote.So, in your deployment.yaml file wherever you are using the numeric values try to pass them as below.

value: {{ .Values.environment.TEMP | quote}}

It will work just fine after that. Hope it helps

Leave a Comment