Interview Prep/Helm/Chart Structure & Metadata

How do you document a chart's values so users can use it?

IntermediateConceptChart Structure & Metadata
Answer

Comment every key in values.yaml (purpose, type, default, example), ship a README.md with a values table, and enforce types with values.schema.json. Many teams generate the README table from comments using helm-docs with # -- annotations:

# -- Number of API replicas. Ignored when autoscaling.enabled is true.
replicaCount: 2

Treat values.yaml as a public interface: renaming a key is a breaking change that deserves a major chart version.

All Helm questions Roadmap: Helm

More on Chart Structure & Metadata