What are your top best practices for chart authoring?
IntermediateConceptBest Practices & Rapid-Fire Commands
Answer
- Prefix every named template with the chart name; use
include, nevertemplate. - Separate
labelsandselectorLabels; never put versions in selectors. - Use
.Release.Namespace, never hardcode namespaces. - Safe defaults: resources, probes, non-root, read-only root FS,
automountServiceAccountToken: falseunless needed. - Optional features behind
enabledflags; validate withvalues.schema.json. - Checksum annotations for config; quote strings, convert numbers.
- Deterministic output (no random values without
lookup), so GitOps diffs stay clean. - Document every value; bump
versionon every change.
More on Best Practices & Rapid-Fire Commands
What are your top best practices for releasing with Helm in production?IntermediateHow do you set resource requests and limits in a chart without forcing them on users?IntermediateHow do you keep an HPA and Helm from fighting over `replicas`?AdvancedHow would you migrate a release whose stored manifest uses an API removed in the new Kubernetes version?AdvancedRapid fire: commands to inspect a release.BeginnerRapid fire: commands to work with charts locally.Beginner