How is a Helm chart structured and how does templating work?
IntermediateConceptExtending Kubernetes: Helm, CRDs, Operators & kubectl
Answer
A chart has Chart.yaml, values.yaml, templates/ (Go templates with Sprig functions), charts/ for dependencies, and optional crds/. Templates reference .Values, .Release, .Chart and helpers from _helpers.tpl.
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
replicas: {{ .Values.replicaCount }}