English 中文(简体)
values are not getting populated in yaml file of helm template
原标题:

Learning to create helm chart.

My values.yaml:

image:
  repository: myimage
  tag: latest

Inside my deployment.yaml, I am trying to do image: {{ (.Values.image).repository }}:{{ (.Values.image).tag }}, which gives the following error: mapping values are not allowed in this context.

image: {{ (.Values.image).repository }}:latest does not print the repository value from the values.yaml. No errors given. (testing using helm template demochart).

Right now, I do not have _helpers.tpl. Is that file necessary? My current file structure:

demochart
|-- Chart.yaml
|-- templates
|   `-- deployment.yaml
`-- values.yaml

If I do image: {{ .Values.image.repository }}:latest, this gives at <.Values.image.repository>: nil pointer evaluating interface {}.repository.

What I am doing wrong?

Do I need to include values.yaml somewhere? if yes, how?

问题回答

暂无回答




相关问题
using Helm behind a proxy

I want to use Helm on new environment that only have access to Internte via Proxy. How can I use Helm commands with proxy? helm repo add .... helm repo update I tried to give proxy in command but I ...

helm with if condition and its scope for the value set

I would like to overwrite the user template with .Values.userTemplate if it exist. But I always get $user as undefined when the .Vaues.userTemplate exist. If i remove if condition and use {{- $user := ...

热门标签