DEV Community

Cover image for πŸš€ Helm for Beginners β€” What, Why, and First Hands-On Task on GKE Cluster
Latchu@DevOps
Latchu@DevOps

Posted on

πŸš€ Helm for Beginners β€” What, Why, and First Hands-On Task on GKE Cluster

If you are running Kubernetes in production, you’ll eventually hear one word everywhere:

HELM

Helm is the package manager for Kubernetes β€” like apt for Ubuntu or yum for Amazon Linux.
But many beginners struggle to understand what Helm actually is and why teams use it.

This guide explains Helm in simple terms and gives you your first hands-on task using a real GKE cluster.


🧠 What Is Helm?

Helm is a package manager for Kubernetes.

Think of Kubernetes as a very strict system where everything must be described using YAML files β€” deployments, services, ingresses, configmaps, secrets, etc.

A simple app may need:

  • deployment.yaml
  • service.yaml
  • configmap.yaml
  • ingress.yaml
  • HPA.yaml

Managing all these files manually becomes painful.

This is where Helm helps.

βœ” Helm bundles multiple YAMLs into a reusable package
βœ” Helm lets you install, upgrade, rollback apps easily
βœ” Helm allows parameterized deployments using values.yaml

In short:

Helm = Kubernetes + Templates + Versioning + Reusability


🎯 Why Do We Use Helm? (Easy Explanation)

Let’s say you want to deploy Nginx on 3 different environments:

  • dev
  • staging
  • production

Without Helm β†’ you maintain 3 sets of YAML files.

With Helm β†’ you just maintain one chart and 3 values files:

  • values-dev.yaml
  • values-staging.yaml
  • values-prod.yaml

Helm injects values into templates and generates the final YAML for Kubernetes.


πŸ“Œ Benefits (Simple & Clear)

βœ… 1. Reuse the same configuration everywhere

Stop copy-pasting YAML.

βœ… 2. Template engine

Write dynamic YAML using variables, conditions, loops.

βœ… 3. Easy installs

Install complex apps with one command:

helm install my-nginx bitnami/nginx
Enter fullscreen mode Exit fullscreen mode

βœ… 4. Built-in version control (releases)

You can upgrade or rollback easily:

helm upgrade my-nginx bitnami/nginx
helm rollback my-nginx 1
Enter fullscreen mode Exit fullscreen mode

βœ… 5. Share charts with the team

Package your application as a Helm chart and publish it to any OCI registry.


βš™οΈ Architecture of a Helm Chart (Simple View)

A typical Helm chart looks like this:

mychart/
  Chart.yaml        β†’ metadata
  values.yaml       β†’ user config
  templates/        β†’ Kubernetes YAML templates
  templates/*.yaml  β†’ deployments, services, ingress, etc.
Enter fullscreen mode Exit fullscreen mode

Helm takes templates + values and renders Kubernetes manifests.


🏁 Hands-On Task #1 (Beginner Level)

To start learning Helm, perform this simple task.

You must have a running GKE cluster.


Step 1: Connect to your GKE cluster

gcloud container clusters get-credentials <CLUSTER_NAME> --zone <ZONE>
Enter fullscreen mode Exit fullscreen mode

Verify connection:

kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

Step 2: Install Helm

Linux / Mac:

curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Enter fullscreen mode Exit fullscreen mode

Check:

helm version
Enter fullscreen mode Exit fullscreen mode

1


Step 3: Add the Bitnami Helm repo

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
Enter fullscreen mode Exit fullscreen mode

Step 4: Install your first chart (Nginx)

helm install my-nginx bitnami/nginx
Enter fullscreen mode Exit fullscreen mode

Check what was created:

kubectl get all
Enter fullscreen mode Exit fullscreen mode

2


Step 5: Inspect the release

helm list
helm status my-nginx
Enter fullscreen mode Exit fullscreen mode

3


Step 6: Delete the release

helm uninstall my-nginx
Enter fullscreen mode Exit fullscreen mode

4


🌟 Thanks for reading! If this post added value, a like ❀️, follow, or share would encourage me to keep creating more content.


β€” Latchu | Senior DevOps & Cloud Engineer

☁️ AWS | GCP | ☸️ Kubernetes | πŸ” Security | ⚑ Automation
πŸ“Œ Sharing hands-on guides, best practices & real-world cloud solutions

Top comments (0)