Everything You Need to Know to Start Using Helm
90%
Using a Chart with a Custom Configuration File
If you have 1 or 2 configurations to define, using the --set flag is a good option. However, if you have tens of values to change, the --set flag can become cumbersome and error-prone. In such cases, it's better to create a custom configuration file (e.g., values.yaml) and use the --values flag to specify it during installation.
helm upgrade -i [RELEASE_NAME] [CHART] --values values.yaml
In our case, if we want to achieve the same configuration as before using a custom values.yaml file, we can create the file with the following content:
cd $HOME && cat < values.yaml
service:
type: LoadBalancer
ports:
http: 8000
httpsCloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
