A Kubernetes object template is a parameterized YAML definition of a Kubernetes object. Helm charts use templates to package applications while keeping properties such as container images, CPU, memory, service types, and ports customizable through a values.yaml file. section 3.3.6
Templates support maintainable application deployment by separating structure from deployment-specific values:
- Define individual Kubernetes objects in template files. section 3.3.6
- Place customizable properties in values.yaml, including images, resource requests, service types, and ports. section 3.3.6
- Combine templates and values into a Helm chart that can be installed, upgraded, and managed as one application. section 3.3.6
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.
Use the service template and values relationship to see how configurable values populate a Kubernetes object. section 3.3.6
