DEV Community

Arhan Khan
Arhan Khan

Posted on

Helm for Beginners: Package Your Kubernetes Apps Like Real Software

Helm is the package manager for Kubernetes. If Kubernetes is the operating system for your servers, Helm is the app store: it lets you install, upgrade, and remove applications with a single command, instead of applying dozens of YAML files by hand and hoping you got them all.

How does it work? A Helm chart is a package of Kubernetes templates — deployments, services, config maps — with values you can change. You install a chart, Helm renders the templates with your values, and applies the result to your cluster. Upgrading is just installing a new version of the same chart.

# Install Helm and add the official chart repository
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

# Install nginx, with a custom value
helm install my-web bitnami/nginx --set service.type=LoadBalancer

# See what is installed, and upgrade it
helm list
helm upgrade my-web bitnami/nginx --set replicaCount=3

# Remove it cleanly when you are done
helm uninstall my-web
Enter fullscreen mode Exit fullscreen mode
# A tiny piece of a chart — values.yaml
replicaCount: 2

image:
  repository: nginx
  tag: "1.25"

service:
  type: ClusterIP
  port: 80
Enter fullscreen mode Exit fullscreen mode

Helm is great for beginners because it turns Kubernetes from a pile of YAML into something you can install and upgrade with confidence. You can also learn from other people's charts: reading a well-made chart teaches you how a production app is put together.

When should you use Helm? Whenever you run apps on Kubernetes, even a small cluster. It is also how most teams share applications internally — one chart, many environments, different values per environment.

The limits are worth knowing. Helm adds a layer of templating on top of Kubernetes, so debugging a bad render means reading generated YAML. And charts written by others can hide surprising defaults, so always read the values file before installing something into a cluster you care about.

Start today: install Helm, run the nginx install above on any test cluster, and upgrade the replica count. Watching one command change a running app is the moment Helm clicks.

Top comments (0)