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 →
- Use a library chart for shared templates (Deployment, Service, HPA, PDB, labels, security defaults).
- Give each service a thin application chart that depends on the library and adds only what is unique (a CronJob, a sidecar).
- Version the library; services bump it deliberately via
Chart.lock. - 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.
More on Chart Design & Authoring
Your team has 15 near-identical YAML folders, one per microservice per environment. How do you introduce Helm?BeginnerA developer hardcoded `namespace: production` in every template. What is wrong and how do you fix it?BeginnerChanging a ConfigMap value in the chart does not restart the pods, so the app keeps old config. What do you change?IntermediateYou need the same chart to support both Ingress and Gateway API HTTPRoute. How do you design it?IntermediateYour chart's Deployment template has grown to 300 lines of nested `if`s. How do you clean it up?IntermediateHow do you make a chart work for both a stateless API and a worker that has no Service?Intermediate