Interview Prep/Helm/Values & Environments

You must deploy to a region with an air-gapped cluster. How do you handle values and images?

AdvancedScenarioValues & Environments
Answer

Situation read → No internet: chart dependencies, images and OCI pulls must come from inside.

What I'd do →

  1. Mirror charts (helm pull then helm push to the internal registry) including subcharts, and vendor them into charts/ at package time.
  2. Mirror every image referenced by the rendered manifests: helm template ... | yq '..|.image? | select(.)' | sort -u.
  3. Override registries via global.imageRegistry or per-image values.
  4. Package a single .tgz with dependencies included so install needs no repo access.
  5. Verify with helm template that no image still points to a public registry.

Why → Air-gapped deploys fail on the first external reference; rendering is how you find them all.

Interview tip → Mention extracting images from rendered output rather than trusting the README.

All Helm questions Roadmap: Helm

More on Values & Environments