Helm Value Customization¶
Helm Value Customization refers to the methods used to override default configuration parameters within a Helm chart during deployment.^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md] This process allows users to adapt a generic chart to their specific environment requirements without modifying the chart's source code.
Configuration via CLI¶
Using the helm install command, specific values can be overridden directly from the command line interface.^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md]
Configuration via Terraform¶
When managing Helm releases with Terraform using the helm_release resource, values are configured using the set block.^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md] This block explicitly maps a configuration name to a string value.
For example, to configure a Kubernetes Dashboard service to use a LoadBalancer and external port 80, the resource configuration would look like this:^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md]
+ set {
+ name = "service.externalPort"
+ value = "80"
}
+ set {
+ name = "service.type"
+ value = "LoadBalancer"
}
Other common customizations include enabling HTTP protocol, setting RBAC options, and adjusting replica counts:^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md]
+ set {
+ name = "protocolHttp"
+ value = "true"
}
+ set {
+ name = "rbac.clusterReadOnlyRole"
+ value = "true"
}
+ set {
+ name = "replicaCount"
+ value = "2"
}
Sources¶
^[400-devops__06-Kubernetes__devops-helm__terraform-helm__README.md]