{{ .Values.image }}) so a single values.yaml can customize many resources in one place. Below are example template files that you might find in a WordPress Helm chart. Each template demonstrates how variables are referenced and where values come from.
templates/deployment.yaml


| Chart file / template | Purpose |
|---|---|
| templates/deployment.yaml | Defines the application Deployment and container image reference. |
| templates/service.yaml | Exposes the application via Service (ClusterIP, NodePort, LoadBalancer). |
| templates/pv.yaml | Defines a PersistentVolume to back storage requests (cluster-level resource). |
| templates/pvc.yaml | Requests storage from PVs (namespaced PersistentVolumeClaim). |
| templates/secret.yaml | Stores credentials or secrets (data must be base64-encoded). |
| values.yaml | Central place to override template variables per deployment. |
| Chart.yaml | Chart metadata: name, version, description, maintainers, sources. |
| Command | What it does |
|---|---|
| helm search hub | Searches Artifact Hub from the CLI for charts. |
| helm repo add | Adds a remote chart repository (e.g., Bitnami). |
| helm search repo | Searches charts in the local repo index. |
| helm install | Installs a chart as a release in the cluster. |
| helm list | Lists deployed releases. |
| helm uninstall | Removes a release from the cluster. |
| helm pull —untar | Downloads and extracts a chart to a local directory. |
Kubernetes Secret data values (the “data” field) must be base64-encoded. In the earlier secret template, .Values.passwordEncoded is expected to already be base64-encoded. If you prefer to supply the raw password in values.yaml and have Helm encode it during rendering, you can use the b64enc template function, for example:Alternatively, use the Secret’s stringData field to provide raw (unencoded) string values and let the API server handle encoding:Avoid including raw passwords in plain text in version control; consider using external secret management or encrypted values files.
- Helm documentation: https://helm.sh/docs/
- Artifact Hub: https://artifacthub.io/
- Kubernetes documentation: https://kubernetes.io/docs/