Chapter 85: Helm for Kubernetes
85.8 Package, dependency and helmfile awareness
Story. A Microsoft-style platform team packaged an internal chart as payments-0.3.1.tgz, pushed it to an OCI registry, and let app teams depend on it. Junior engineers still learned single-chart Helm first; packaging came second.
Why
Shared charts need versions you can download, not a random folder on someone's laptop.
What
- helm package — Builds a
.tgzfrom a chart folder. - Chart.lock / dependencies — Other charts your chart needs (in
Chart.yamlunderdependencies). - helm dependency update — Downloads into
charts/. - Helmfile / Argo CD — Tools that install many releases from Git (covered more in the Argo CD chapter).
Example 1: Package
helm package hello-web
ls hello-web-0.1.0.tgz
Output
hello-web-0.1.0.tgz
What it shows: A versioned archive matching version in Chart.yaml.
Example 2: Dependency block (awareness)
# Chart.yaml
dependencies:
- name: redis
version: "19.0.0"
repository: "https://charts.bitnami.com/bitnami"
helm dependency update hello-web
What it shows: Redis chart lands under charts/ so install brings both.
Ravindra Bagale's Tip
Learn one chart end to end before you nest dependencies. Nested charts hide values under long keys like redis.auth.password.
dependencies nest करण्याआधी एक chart पूर्ण शिका. Nested charts मध्ये values लांब keys खाली दडतात.
dependencies nest करने से पहले एक chart पूरा सीखें. Nested charts में values लंबी keys के नीचे छिपती हैं.
Quick quiz
Q1. What file does helm package create?
A .tgz named name-version.tgz
Q2. What pulls dependent charts?
helm dependency update
Q3. Where are dependency charts stored?
In the charts/ subfolder
Did you understand? Let us try it once more.