helm dry run install

sfgroups picture sfgroups · Dec 19, 2017 · Viewed 51.1k times · Source

I am trying to test my development helm chat deployment output using --dry-run option. when I run the below command its trying to connect to Kubernetes API server.

Is dry run option required to connect Kubernetes cluster? all I want to check the deployment yaml file output.

helm install mychart-0.1.0.tgz --dry-run --debug

Error: Get http://localhost:8080/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

Answer

Eldad Assis picture Eldad Assis · May 8, 2018

There is also an option to run helm template ./mychart to render the generated YAMLs without needing the connection to tiller. Combined with helm lint it's a great set to verify validity of your chart.