Bitzu

KCNA ยท Application delivery and debugging

Helm and Kustomize

Charts, values, releases, overlays and patches, when to use each.

Key points

  • Helm packages Kubernetes manifests as a chart: templates plus default values.
  • Release: created by installing a chart, tracked by revision for upgrade and rollback.
  • Values are overridden with --set or -f.
  • Kustomize: no templates; overlays with patches, prefixes and generators customise a base of plain YAML, driven by a kustomization.yaml.
  • kubectl kustomize renders it, kubectl apply -k applies it.

Source: https://helm.sh/docs/helm/helm_upgrade/

Practice questions

Single choice

What is a Helm chart?

  1. A package of templated Kubernetes manifests with default values and metadata
  2. A running instance of an application in a cluster
  3. A patch file applied on top of a base
  4. A built container image
Show answer

Answer: A. A package of templated Kubernetes manifests with default values and metadata

A chart is the package; the running instance created from it is a release. Patches over a base belong to Kustomize.

Select all that apply

Which statements about Helm are correct?

  1. Chart default values can be overridden with --set or -f
  2. Each installed chart becomes a release that Helm tracks
  3. helm upgrade --install installs the release if it does not exist yet
  4. A chart cannot contain default values
  5. Helm needs a kustomization.yaml in every chart
Show answer

Answer: A. Chart default values can be overridden with --set or -f, B. Each installed chart becomes a release that Helm tracks, C. helm upgrade --install installs the release if it does not exist yet

Values, releases and --install are core Helm behaviour. kustomization.yaml belongs to Kustomize, and charts ship with default values.

True or false

True or false: applying a Kustomize overlay rewrites the original base YAML files in place.

Show answer

Answer: False

Kustomize renders a customised copy from the base plus patches; the base files stay untouched, so many overlays can share one base.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More KCNA topics in this module