medgai
medgai

Reputation: 112

How to save yaml generated out of templates for helm chart?

I have deployed several helm charts in kubernetes out of templates. I can view the the generated yamls using this command:

helm install <chart-name> <chart-path> --dry-run --debug

What I need is to save yamls generated via this command. Also suggest me a way how i'll be able to get (and write) the yamls while installing.

Upvotes: 3

Views: 6092

Answers (2)

Harsh Manvar
Harsh Manvar

Reputation: 30160

helm template --output-dir './' './'

helm template will create the YAML files or generate the files you can save those and apply too as per requirement.

helm template --output-dir './yaml' './'

it will create the directory YAML and store all YAML output inside that.

last ./ is the path of chart

Upvotes: 4

heheh
heheh

Reputation: 220

helm install <chart-name> <chart-path> --dry-run --debug > temp.yaml

Further read

Upvotes: -2

Related Questions