A values.yaml file supplies configuration values that Helm chart templates use to customize Kubernetes objects. It can control properties such as container images, CPU and memory requests, replica counts, service types, and ports across an application. section 3.3.6
Application configuration
A chart can set three replicas, select the varunmallya/hello-joker:v1 image, use an IfNotPresent pull policy, and expose port 8080 through a NodePort service.
Figure 3.9 The service_template.yaml file defines the K8s service, and the type of service and port are obtained from values.yaml. The template and values form the core of a Helm chart.
Trace how a service template obtains its type and port from values.yaml, connecting configuration to generated Kubernetes resources. section 3.3.6


