Cloud Native 14 min read

Master One-Click Kubernetes Deployments with Helm: A Complete Guide

This article explains how Helm simplifies Kubernetes deployments by providing a package manager that supports single‑command installation, high configurability, version control, templating, chart repositories, and plugins, and it walks through Helm's workflow, core concepts, usage steps, installation order, and a comprehensive command reference.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Master One-Click Kubernetes Deployments with Helm: A Complete Guide

1. Introduction

In Kubernetes, deploying many micro‑service applications with repeated kubectl apply commands is painful. Helm (https://helm.sh) provides a package manager that simplifies deployment.

2. Helm Capabilities

Simplified deployment : single command to install and manage apps.

Highly configurable : Helm charts allow easy customization.

Version control : manage multiple versions and roll back.

Templating : YAML templates generate Kubernetes objects.

Chart repository : share and reuse charts.

Plugin system : extend Helm functionality.

Helm is essentially a package manager for Kubernetes.

3. Helm Workflow (v3)

Helm v3 removes Tiller and interacts directly with the API server via kubeconfig.

Helm workflow diagram
Helm workflow diagram

Developer creates and edits a chart.

Package and publish the chart to a repository.

When an administrator runs helm install, dependencies are downloaded.

Helm deploys the resources to Kubernetes.

4. Core Concepts

Chart : a Helm package containing images, dependencies, and resource definitions.

Repository : a location that stores Helm charts.

Release : an instance of a chart running in a Kubernetes cluster.

Value : parameters used to configure Kubernetes objects.

Template : Go‑template files that generate Kubernetes manifests.

Namespace : logical partition for isolating resources.

5. Using Helm

5.1 Install Helm

Download the binary from helm.sh or install via a package manager.

5.2 Create a Chart

Run helm create wordpress to generate a chart directory containing Chart.yaml, values.yaml, and templates.

Chart creation example
Chart creation example

5.3 Configure the Chart

Edit Chart.yaml and values.yaml to set metadata and default values.

apiVersion: v2
name: wordpress
version: 1.0.0
image:
  repository: nginx
  tag: '1.19.8'

5.4 Package the Chart

Package the chart into a tarball:

helm package wordpress/

5.5 Publish the Chart

Add a repository and push the chart:

helm repo add myrepo https://example.com/charts
helm push wordpress-0.1.0.tgz myrepo

5.6 Install a Release

Install the chart: helm install mywordpress myrepo/wordpress This creates a Release named mywordpress containing WordPress and MySQL.

5.7 Manage Releases

List releases with helm ls, upgrade with helm upgrade, rollback with helm rollback, and uninstall with helm uninstall (optionally --delete-data to remove PVCs).

6. Installation Order

Helm installs resources in a defined order, for example: Namespace, NetworkPolicy, ResourceQuota, LimitRange, PodSecurityPolicy, ServiceAccount, Secret, ConfigMap, PersistentVolume, PersistentVolumeClaim, CustomResourceDefinition, Deployment, Service, DaemonSet, Pod, etc.

7. Command Summary

Run helm --help for a full list of commands and environment variables. Common commands include helm search, helm pull, helm install, helm list, helm upgrade, helm rollback, helm uninstall, and many others.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ci/cdKubernetespackage managerhelm
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.