Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm dry run install

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. 
like image 564
sfgroups Avatar asked Dec 19 '17 19:12

sfgroups


People also ask

What is the use of helm install -- Dry Run command?

helm install --dry-run --debug or helm template --debug : We've seen this trick already. It's a great way to have the server render your templates, then return the resulting manifest file. helm get manifest : This is a good way to see what templates are installed on the server.


1 Answers

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.

like image 130
Eldad Assis Avatar answered Nov 01 '22 00:11

Eldad Assis