Skip to content
$ lynuxpro

INTERVIEW PREP

Interview questions

570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.

Showing 196–210 of 490 questions

196.Why did my upgrade drop settings from the last release?MidHelm

helm upgrade starts from chart defaults plus what you pass now; it does not remember previous values. Pass the same values files every time, or use --reuse-values / --reset-then-reuse-values for a quick fix.

197.How do you make deploys roll back automatically?MidHelm

helm upgrade --install ... --wait --rollback-on-failure --timeout 5m (Helm 4's name for --atomic). Helm waits for readiness and rolls back if it times out or fails.

198.Why must selector labels never change?MidHelm

A Deployment's selector is immutable. If labels in it change (for example adding the version), the upgrade fails with 'field is immutable'. Keep selectors to name and instance only.

199.What is the difference between chart version and app version?MidHelm

version in Chart.yaml is the chart's own version, bumped on any chart change (SemVer). appVersion is the version of the app it deploys, often used as the default image tag.

200.What are Helm hooks?MidHelm

Annotated resources that run at points in a release, like pre-install or pre-upgrade, often a Job for database migrations. Set a hook delete policy so old hook Jobs are cleaned up.

201.How do you manage chart dependencies?MidHelm

List them under dependencies in Chart.yaml with a version range and repository, run helm dependency update, and set their values under the dependency name in your values file. Use condition to switch a dependency on or off.

202.What does helm upgrade --install --atomic do?MidHelm

--install installs if the release doesn't exist yet. --atomic waits for resources to be ready and rolls back automatically if the upgrade fails, which is safer in CI.

203.What are _helpers.tpl and named templates for?MidHelm

They hold reusable snippets, defined with define and used with include, such as standard labels or the full name. This keeps templates consistent and avoids copy-paste.

204.How do you handle secrets with Helm?SeniorHelm

Never plain values in Git. Options: SOPS-encrypted values with helm-secrets, Sealed Secrets, or best, External Secrets Operator pulling from a secret manager so the chart holds only references.

205.How does Argo CD deploying a chart differ from helm install?SeniorHelm

Argo CD renders with helm template and applies manifests itself: no Helm release exists, lookup returns nothing and hooks map to PreSync/PostSync. Rollback is a Git revert.

206.How do you test Helm charts?SeniorHelm

helm lint, a JSON schema for values, rendering with several values files in CI, kubeconform to validate the YAML, the helm-unittest plugin for template logic, and helm test or chart-testing (ct) to install into a temporary cluster.

207.How do you publish charts?SeniorHelm

Package with helm package and push to an OCI registry (helm push chart.tgz oci://registry.example.com/charts) or a classic chart repository. Sign charts if your supply-chain policy needs it.

208.Where does Helm store release information?SeniorHelm

In Helm 3, each release revision is a Secret in the release's namespace (type helm.sh/release.v1). That is why helm history works without a server component, and why deleting those Secrets breaks the release.

209.How do you structure values for many environments?SeniorHelm

Keep safe defaults in values.yaml, then small override files per environment (values-staging.yaml, values-prod.yaml). Pass secrets from a secret manager, not values files, and keep environment differences small and visible.

210.Helm or Kustomize: how do you choose?SeniorHelm

Helm is best for packaging and sharing apps with many options and for third-party software. Kustomize patches plain YAML without templates, which is simpler for your own apps with small per-environment changes. Many teams use both, sometimes together through Argo CD.