liveBook · Manning

Values.yaml file

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

A values file is a YAML configuration file containing parameters that Helm substitutes into chart templates.

A values.yaml file is a YAML configuration file that supplies parameters for Helm chart templates. Helm substitutes those values into templated Kubernetes manifests, allowing chart configuration without editing the templates. section 5.3.1

Use a values file to configure and install a chart:

  • Create values.yaml with the chart-specific parameters. section 5.3.1
  • Pass it during installation with helm install and the --values values.yaml flag. section 5.3.1
  • Verify the resulting release with Helm output such as STATUS: deployed or helm ls. section 5.3.1

MetalLB address-pool configuration

A values.yaml file can define an address pool using protocol layer2 and the range 172.18.255.200-172.18.255.250. Install it with helm install metallb metallb/metallb --values values.yaml. section 5.3.1

cccc
address-pools:
 - name: default
   protocol: layer2
   addresses:
   - 172.18.255.200-172.18.255.250

Inspect a concrete values.yaml listing for MetalLB address-pool configuration. section 5.3.1

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Explains YAML values, Go template substitution, installation, and verification, but does not detail Helm rendering internals.
Examples
Uses a MetalLB address pool with layer2 protocol and a Docker bridge-network address range.
What it assumes
Assumes YAML manifests and Helm chart templating, while demonstrating how parameterized values become chart configuration.
What you can do after
Operate/configure Helm charts by creating values.yaml, installing with --values, and checking the deployed release.
How it connects
Connects YAML configuration with Helm, chart templates, Kubernetes manifests, and MetalLB.

Also explained in

Compare how 3 books explain values.yaml file →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.