Your team has 15 near-identical YAML folders, one per microservice per environment. How do you introduce Helm?
BeginnerScenarioChart Design & Authoring
Answer
Situation read → Copy-paste manifests drift; a fix applied to one service never reaches the others. The variation is small: image, port, replicas, env vars, resources.
What I'd do →
- Diff the folders to find what actually varies; that list becomes
values.yaml. helm createone chart, strip it to Deployment, Service, ServiceAccount, HPA, PDB, Ingress, with helpers for names and labels.- Convert one low-risk service, compare
helm templateoutput with the existing YAML (diff <(helm template ...) <(cat old/*.yaml)), and deploy to dev. - Roll out service by service; adopt existing objects with Helm ownership metadata (or
--take-ownershipon Helm 3.17+). - Once three services fit, extract common templates into a library chart.
Why → Starting from real variation avoids an over-engineered "chart of everything".
Interview tip → Mention that you validated equivalence by diffing rendered output before cutting over.
More on Chart Design & Authoring
Should you build one generic chart for all microservices or one chart per service?IntermediateA 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