Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm template --debug or helm install --dry-run --debug , which is best?

I would like to know which is best between helm template --debug and helm install --dry-run --debug

Thank you

like image 323
Eric Soucy Avatar asked Sep 12 '25 17:09

Eric Soucy


1 Answers

The difference between the two commands is that helm install --dry-run will send things to a Kubernetes cluster, but helm template won't.

My general experience has been that debugging intricate Go templates can be tricky, and if I'm having YAML issues (and especially if I have the Kubernetes API documentation up in a browser tab) the helm template output is more than sufficient for my needs, and is a little faster and has fewer dependencies. So I frequently use helm template.

In contrast, by the time I've gotten the Go templating logic and YAML formatting correct, I'm usually ready to actually do a test deployment; so when I helm install it's almost never with --dry-run. If I've gotten the object layout wrong this will still complain, and if it's right then I'm ready to start sending requests to the service.

like image 175
David Maze Avatar answered Sep 15 '25 17:09

David Maze