Interview Prep/Helm/Chart Design & Authoring

Should you build one generic chart for all microservices or one chart per service?

IntermediateScenarioChart Design & Authoring
Answer

Situation read → A generic chart gives consistency; per-service charts give flexibility. Both have failure modes: a generic chart grows hundreds of flags, per-service charts diverge.

What I'd do →

  1. Use a library chart for shared templates (Deployment, Service, HPA, PDB, labels, security defaults).
  2. Give each service a thin application chart that depends on the library and adds only what is unique (a CronJob, a sidecar).
  3. Version the library; services bump it deliberately via Chart.lock.
  4. Keep a "golden" generic app chart only for truly standard stateless services.

Why → Shared code with a versioned contract, without forcing every edge case into one template.

Interview tip → Say "library chart plus thin service charts" and explain the versioning benefit.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring