Skip to content
Tutorials Center
My learning

Topics

Helm Tutorial

Learn Helm step by step: 38 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Helm? The Package Manager for Kubernetes Learn what Helm is, which problems it solves for Kubernetes deployments, how templates and values work together, and when Helm is the right tool.
  2. 2 Helm Concepts: Charts, Releases, Repositories and Revisions Understand the vocabulary of Helm: chart, values, release, revision, repository, namespace and the client-side architecture, with a runnable release model.
  3. 3 Installing Helm and Setting Up Your Environment Install the Helm CLI on Linux, macOS and Windows, connect it to a cluster with kubeconfig, enable shell completion and understand version compatibility.
  4. 4 Your First Helm Release: Install, Inspect and Uninstall Add a chart repository, search for a chart, customize it, install your first release, inspect it with status and get, then uninstall it cleanly.

Charts and Releases

  1. 5 Chart Structure and Chart.yaml Learn the files and folders of a Helm chart: Chart.yaml fields, values.yaml, templates, charts, crds, .helmignore and how version and appVersion differ.
  2. 6 Creating a Chart with helm create Generate a starter chart with helm create, read every generated file, learn the fullname and labels helpers, and trim the scaffold down to what you need.
  3. 7 Install, Upgrade and Rollback Master the Helm release loop: install a chart, change it with helm upgrade, inspect the revision history, compare revisions and roll back safely.
  4. 8 Release Lifecycle Commands: list, status, get, history and uninstall Inspect and manage Helm releases: helm list filters, status, the get subcommands, history, uninstall with keep-history, and how release Secrets are encoded.
  5. 9 Upgrade Flags and Safe Deployments: --atomic, --wait and --reuse-values Deploy safely with Helm: --wait, --timeout, --atomic, --cleanup-on-fail, --dry-run, --force and the differences between reuse-values and reset-then-reuse-values.

Templates and Values

  1. 10 Go Templates: The Basics Learn the Go template syntax behind Helm charts: actions, the dot, comments, whitespace trimming, quoting and why indentation matters when templating YAML.
  2. 11 Values and Overrides: values.yaml, -f and --set Learn how Helm merges values: chart defaults, values files, --set, --set-string and --set-file, the precedence order, list pitfalls and good values.yaml design.
  3. 12 Built-in Objects: .Release, .Chart, .Capabilities, .Files and .Template Know every object Helm gives your templates: .Values, .Release, .Chart, .Capabilities, .Template, .Files and .Subcharts, with examples and a runnable model.
  4. 13 Control Flow: if, with, range and Variables Use if/else, with, range, variables, break and continue in Helm templates; learn Go truthiness rules, comparison functions and how $ and the dot change scope.
  5. 14 Named Templates and _helpers.tpl Reuse template code with define and include: build helpers in _helpers.tpl, pass context and custom dicts, avoid name collisions and know include versus template.

Template Functions and Pipelines

  1. 15 Functions and Pipelines: Sprig in Helm Templates Learn how pipelines pass values as the last argument, and tour the most useful Sprig functions: default, quote, trunc, printf, lists, dicts, math and encoding.
  2. 16 Rendering YAML: toYaml, indent and nindent Turn values into YAML blocks with toYaml, place them at the right depth with indent and nindent, avoid the classic indentation errors and convert with toJson and fromYaml.
  3. 17 Required, Default and Validation: required, fail and values.schema.json Make charts fail early and clearly: use required, fail and default, safe nested access with dig, and validate values with a JSON Schema in values.schema.json.
  4. 18 tpl, lookup and Other Advanced Template Functions Go beyond the basics: render strings from values with tpl, read live cluster objects with lookup, keep generated secrets stable, and use semverCompare and must functions.

Dependencies and Hooks

  1. 19 Chart Dependencies and Subcharts Declare dependencies in Chart.yaml, run helm dependency update, understand Chart.lock, version ranges, aliases and file:// subcharts, with a runnable resolver stand-in.
  2. 20 Subchart Values and Global Values Learn how parent values override subchart defaults, how the global key is shared with every subchart, and how scope works in templates, with a merge stand-in.
  3. 21 Conditional Dependencies, Tags and import-values Turn subcharts on and off with condition and tags, and pull values back out of subcharts with import-values, with a runnable stand-in that evaluates dependency switches.
  4. 22 Library Charts and Shared Templates Build a Helm library chart with type: library, share named templates and helpers, avoid name collisions, and call them with include, with a runnable template-sharing stand-in.
  5. 23 Helm Hooks: Running Jobs at Release Events Run database migrations and other tasks at the right moment in a Helm release using hook annotations, all hook types, execution order and a lifecycle stand-in.
  6. 24 Hook Weights, Delete Policies and CRDs Control hook order with hook-weight, clean up hook Jobs with hook-delete-policy, and manage CustomResourceDefinitions with the crds directory, with runnable stand-ins.

Repositories and OCI

  1. 25 Chart Repositories: Adding, Searching and Hosting Use helm repo add, update and search, understand index.yaml, and host your own HTTP chart repository on static storage, with a runnable index.yaml generator stand-in.
  2. 26 Packaging, Versioning and .helmignore Package charts with helm package, understand version vs appVersion, SemVer bump rules, .helmignore and what ends up inside the .tgz, with a bump-rules stand-in.
  3. 27 OCI Registries: Push and Pull Helm Charts Store Helm charts in OCI registries with helm registry login, helm push and oci:// install, learn reference rules and tag mapping, with a reference-parser stand-in.
  4. 28 Helm Plugins and Artifact Hub Extend Helm with plugins such as helm-diff and helm-secrets, write a minimal plugin.yaml, and find community charts on Artifact Hub, with a plugin manifest stand-in.

Testing and Security

  1. 29 Linting and Debugging Helm Templates Catch chart mistakes before the cluster does with helm lint, helm template, --dry-run and --debug, read common errors, and validate rendered YAML, with runnable stand-ins.
  2. 30 Testing Charts: helm test, unittest and chart-testing Test Helm charts at three levels: template unit tests with helm-unittest, in-cluster helm test hooks and chart-testing in CI, with a runnable unit-test stand-in.
  3. 31 Validating Values with values.schema.json Add a JSON Schema to your chart with values.schema.json to reject bad values early, use required, enum and pattern, and see a runnable validator stand-in.
  4. 32 Chart Security: Provenance, Secrets and RBAC Secure the Helm supply chain: sign and verify charts with provenance files, handle secrets safely, set secure pod defaults, limit RBAC and scan charts, with stand-ins.

Helm in CI/CD

  1. 33 Helm in CI: Lint, Test, Package and Publish Build a CI pipeline for Helm charts with GitHub Actions: lint, unit tests, kind install tests, version checks, OCI publishing, deploys and a release-gate stand-in.
  2. 34 GitOps with Argo CD and Flux Deploy Helm charts declaratively with GitOps: Argo CD Applications and Flux HelmReleases, how they render charts, drift correction and promotion, with a reconcile-loop stand-in.
  3. 35 Upgrades, Rollbacks and Release Strategies Upgrade Helm releases safely: three-way merges, --atomic and --wait, helm rollback and history, stuck releases, rolling restarts on config change, and a revision stand-in.

Projects and Practice

  1. 36 Project: A Production-Ready Web App Chart Build a complete Helm chart for a web application: Deployment, Service, Ingress, HPA, PDB, migration hook, schema, tests and CI, with a values-per-environment stand-in.
  2. 37 Project: An Umbrella Chart for a Shop Compose several services and infrastructure into one umbrella chart with dependencies, conditions, globals, import-values and environment layering, with a resolver stand-in.
  3. 38 Helm Practice: Exercises, Checklists and Interview Questions Practice Helm with hands-on exercises on dependencies, hooks, OCI, testing and CI, a chart review checklist, common failures and interview questions with answers.