Skip to main content
Kubernetes is powerful at running and scaling containerized applications, but managing the many interdependent resources that make up an application can become tedious for humans. A typical application deployed to Kubernetes — such as WordPress — often requires multiple resources that must be created, updated, and deleted in coordination.

Common Kubernetes objects for a WordPress site

  • Deployment (for Pods such as MySQL and the web server)
  • PersistentVolume (PV) and PersistentVolumeClaim (PVC) for database storage
  • Service to expose the web server
  • Secret to store sensitive credentials (admin password, API keys)
  • Jobs, CronJobs, or backup resources for maintenance tasks
Below are example manifests for these objects and the kubectl commands to apply them. These examples show the manual, file-per-object approach that becomes hard to maintain across upgrades.

Example Secret (base64-encoded data)

Apply:
Note: when using data: in a Secret, values must be base64-encoded (for example: echo -n 'your-password' | base64).

Example Service

Apply:
Tip: Ensure the Service selector labels match the Pod template labels and that the Service port aligns with the container’s exposed port.

Example PersistentVolumeClaim

Apply:

Example Deployment

Apply:

Example PersistentVolume

Apply:
Two months later you may need to change storage size, update images, modify labels, or rotate credentials. That often means editing many YAML files and reapplying them. Deleting the application requires remembering every related object — unless you tracked them very carefully. Some teams try to solve this by combining everything into a single multi-document YAML file. While that centralizes resources, it quickly becomes difficult to search, edit, and maintain.

Example multi-document YAML (single file)

Searching within and maintaining a long multi-document YAML still forces you to micromanage each resource. Enter Helm.

What Helm solves

Helm reframes a Kubernetes application as a single package — a chart — that groups related manifests and exposes configuration points through a values.yaml. Helm is often described as the package manager for Kubernetes because it automates installing, upgrading, and uninstalling collections of Kubernetes resources as a single release. Benefits of using Helm:
  • Package multiple Kubernetes manifests as a chart
  • Centralize configuration in values.yaml
  • Install, upgrade, rollback, and uninstall via simple commands
  • Track release revisions, enabling safe rollbacks
  • Reuse charts across environments (dev/stage/prod) by supplying different values files
Think of installing software on your desktop: you run an installer rather than copying individual files. Helm acts similarly for Kubernetes manifests — with added versioning and lifecycle management.

Centralized configuration example (values.yaml)

Common Helm commands

Helm tracks releases and revisions. That lets you upgrade or rollback an application with a single command instead of manually editing multiple manifests. Helm also handles uninstalling by removing all objects that were part of a release.
By treating your Kubernetes deployment as an application package rather than a set of independent YAML files, Helm reduces repetitive edits and the chance of human error. The rest of this guide will dive deeper into chart structure, templating, the values.yaml schema, and practical workflows for installing, upgrading, and rolling back releases.

Watch Video