How to deploy Helm charts with modified values using --set and -f flags?
Jim is trying to deploy a POC with Helm charts containing modified values for target namespace, node tolerations, nodeSelectors, and storage class in the values.yaml file using the command helm install --set wait=true -f values.yaml my-rw-poc .
, but the deployment is still in the default namespace and the custom values are ignored. How can this be resolved?
Jim
Asked on Feb 02, 2024
To deploy Helm charts with modified values using --set
and -f
flags, ensure that the values in the values.yaml
file are correctly structured and that the modifications are applied in the right sections. Make sure to specify the correct path to the values.yaml
file and use the --set
flag for individual value overrides. Here's a general approach:
- Check the structure of the
values.yaml
file to ensure the values are under the correct keys. - Verify that the modifications are made in the appropriate sections of the
values.yaml
file. - Use the
--set
flag to override specific values during deployment. - Double-check the command syntax and path to the
values.yaml
file.
By following these steps, you can deploy Helm charts with modified values successfully.