Interview Prep/Helm/Best Practices & Rapid-Fire Commands

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, never template.
  • Separate labels and selectorLabels; never put versions in selectors.
  • Use .Release.Namespace, never hardcode namespaces.
  • Safe defaults: resources, probes, non-root, read-only root FS, automountServiceAccountToken: false unless needed.
  • Optional features behind enabled flags; validate with values.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 version on every change.
All Helm questions Roadmap: Helm

More on Best Practices & Rapid-Fire Commands