Goal:
Learn how to create a Helm chart from scratch, understand its folder structure, and deploy it on your local or GKE Kubernetes cluster.
โ What You Will Learn
- How to generate a Helm chart
- Understand the purpose of each file/folder in a chart
- Customize chart values
- Deploy your chart into Kubernetes
- Upgrade and rollback releases
๐งช Prerequisites
- Kubernetes cluster (Minikube, Kind, or GKE)
- Helm installed:
helm version
Create & Deploy Your First Helm Chart
Step 1 โ Create a New Helm Chart
Run:
helm create myapp
This generates a folder like:
myapp/
Chart.yaml
values.yaml
charts/
templates/
templates/deployment.yaml
templates/service.yaml
templates/ingress.yaml
Step 2 โ Understand Chart Structure
๐ Chart.yaml
Metadata of your application (chart name, version, app version).
๐ values.yaml
Default configuration values (image, tag, service type, replicas, ports).
This is the file users can override.
๐ templates/
Contains Kubernetes manifest templates with Helm placeholders.
๐ charts/
Subcharts (used in microservices or dependencies).
Step 3 โ Open & Explore values.yaml
Example sections:
replicaCount: 1
image:
repository: nginx
tag: "latest"
service:
type: ClusterIP
port: 80
This values.yaml controls the behavior of the Kubernetes templates.
Step 4 โ Render Templates Without Deploying
Check what Helm will generate:
helm template myapp/
Or with custom values:
helm template myapp/ --set replicaCount=2
Step 5 โ Install the Chart
Deploy it to your cluster:
helm install myapp-release myapp/
Verify:
kubectl get pods
kubectl get svc
Step 6 โ Upgrade the Release
Change something in values.yaml (e.g., replicas = 3).
Upgrade:
helm upgrade myapp-release myapp/
Check rollout:
kubectl get pods
Step 7 โ Rollback to Previous Version
kubectl get pods
helm history myapp-release
helm rollback myapp-release 1
helm history myapp-release
kubectl get pods
Step 8 โ Uninstall the Release
helm uninstall myapp-release
๐ฏ Outcome of Task #2
By completing Task #2, you now know:
โ How to create a Helm chart
โ How to understand & modify its structure
โ How Helm templates convert into Kubernetes YAML
โ How to install/upgrade/rollback Helm releases
โ How to manage your app with Helm like a pro
๐ 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)