In Helm, a YAML file named “values.yaml” stores the chart values, which serve as default configurations for the chart. These values can be customized at installation time either by using the –set flag on the Helm command line or by specifying a separate YAML file. Chart values allow for the configuration of various aspects of a chart, such as the number of replicas in a deployment, the image repository and tag of a container, and application-specific configuration settings.
During installation, the chart values are passed to the templates, where they are used to configure the resources being deployed. Go templating syntax is used in the templates to reference these values, making it possible to use them in different ways, such as setting environment variables for a container or creating a configMap from a value.
You can change specific parameters, according to whats allowed by creators to customization. For example, to change the ReplicaCount value to 3 (means 3 pods running your release) when installing a nginx chart using –set:
helm install --set replicaCount=3 my-nginx-1 my-test-repo/nginx
This method can be used for few and short customizations. For example, changing the service type and the ReplicaCount at the same time:
helm install --set replicaCount=3 --set service.type=NodePort my-nginx-1 my- test-repo/nginx
In case of larger changes, it’s recommended to create the yaml file with everything and pass it to helm:
replicaCount: 3 service: type: NodePort
In both cases, you should tell helm you gonna use this files with your customization:
helm install -f values.yaml my-nginx-1 my-test-repo/nginx
You can also change the service type of your Chart, for example. Want to read more about Kubernetes Services? Click here.
Use the command line, adding the name of the chart you want to edit:
Service type NodePort
kubectl edit service name_chart
Now, you will be able to edit the file:
- To edit the file tap I. Insert message must appear in the end of the page
- Click ESC
- Type :WQ to save the file and exit.
Now, you can check the service type by running the command line. If you don’t know what kubectl means, you can read more about it here.
kubectl get pod
If you found the process confusing and time-consuming, Taikun simplifies the process of editing some Helm chart parameters, for example, to manage your service types and other configurations. You can easily access the Helm chart you want to edit and then make any necessary changes using the intuitive user interface. And if you need any help along the way, Taikun’s documentation is always just a click away.