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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With