World map

 

BM: Baca dalam Bahasa Melayu

World K4: Notes, Lockers & Packages

Helm 4: install, upgrade, rollback

You will learn: to install a packaged app with Helm, change it, and roll it back.

Checked with Kubernetes 1.37 on 31 Oct 2026

The problem

You are here: cluster kind-dev namespace default
helm template shop ./kedai prints two objects: a Service and a Deployment, both named shop-kedai, with 2 replicas. Terminal output: $ helm template shop ./kedai --- # Source: kedai/templates/service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/instance: shop app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: kedai app.kubernetes.io/version: 1.0.0 helm.sh/chart: kedai-0.1.0 name: shop-kedai spec: ports: - name: http port: 80 protocol: TCP targetPort: http selector: app.kubernetes.io/instance: shop app.kubernetes.io/name: kedai type: ClusterIP --- # Source: kedai/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/instance: shop app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: kedai app.kubernetes.io/version: 1.0.0 helm.sh/chart: kedai-0.1.0 name: shop-kedai spec: replicas: 2 selector: matchLabels: app.kubernetes.io/instance: shop app.kubernetes.io/name: kedai template: metadata: labels: app.kubernetes.io/instance: shop app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: kedai app.kubernetes.io/version: 1.0.0 helm.sh/chart: kedai-0.1.0 spec: containers: - image: nginx:1.29-alpine imagePullPolicy: IfNotPresent name: kedai ports: - containerPort: 80 name: http protocol: TCP

Your shop needs a Deployment and a Service. Someone already packed both as a kit. One command filled in all that YAML.

Watch

Drag a card into a box. Or tap the card, then tap the box.

      Helm: Kubernetes' package manager: it fills chart templates with values and keeps a history of releases. is Kubernetes’ package manager. A chart: A meal kit: templates plus default values, ready to install. is a meal kit: templates plus default values.

      Try it

      Order 3 trays from the kit. Look at the YAML before anything is installed.

      You are here: cluster kind-dev namespace default
      Stalls: 3. Trays: 0 (0 ready). Waiting for a stall: 0.
      dev-control-planeOpenManager

      No trays here.

      dev-workerOpen

      No trays here.

      dev-worker2Open

      No trays here.

      Time: +0s (sped up)

      Watch

      bash
      helm install shop ./kedai
      helm upgrade shop ./kedai --set replicaCount=3
      helm history shop
      helm rollback shop 1
      Four Helm commands: install shop, upgrade it to 3 replicas, show its history, and roll back to revision 1.

      install makes a release: One installed copy of a chart, with numbered revisions you can roll back to. called shop, at revision 1. Every upgrade adds a revision. rollback brings an old one back.

      Predict

      Revision 1: install. Revision 2: an upgrade with a bad image. You run helm rollback shop 1. What is the newest revision now?

      Pick one answer.

      Check

      Put one release’s life in order, first at the top.

      First step at the top. Put these in order. Use the arrows, or drag.

      • helm rollback shop 1
      • helm uninstall shop
      • helm history shop
      • helm install shop ./kedai
      • helm upgrade shop ./kedai --set image.tag=1.30-alpine

      Check

      shop is installed. Build the command that moves it to nginx 1.30.

      Tap the pieces in the right order.

      …

      You did it!

      You can now install, upgrade and roll back an app with Helm.

      Go deeper (optional)

      Learn Helm 4: it shipped in November 2025. Helm 3 gets security fixes only until 11 November 2026. Charts come from chart repos or OCI registries. helm uninstall shop deletes the release and everything it made.

      Real rep (optional), on a practice kind cluster:

      Real mission

      1. helm version
      2. helm create kedai
      3. helm install shop ./kedai
      4. helm upgrade shop ./kedai --set replicaCount=3
      5. helm history shop
      6. helm rollback shop 1
      7. helm uninstall shop

      0 of 8 steps done · Your ticks are saved.