Master Helm V3: Deploy, Manage, and Scale Kubernetes Apps with Hands‑On Examples
This guide walks you through Helm V3’s key features, shows step‑by‑step commands to create deployments, services, and ingress resources, demonstrates installing and customizing a Helm chart, and explains how to upgrade, scale, and roll back applications on a Kubernetes cluster.
Helm V3 Features
Architecture change: Tiller removed; Helm connects directly to the API server via kubeconfig.
Release names can be reused across different namespaces.
Charts can be stored in Docker image registries.
Kubernetes application deployment workflow
Write YAML files for deployment, service, and ingress.
1.0 Create deployment template
kubectl create deployment nginx --image=nginx --dry-run -o yaml > deployment.yaml1.1 Launch nginx pod
kubectl apply -f deployment.yaml1.2 Verify pod status
kubectl get pods2.0 Create service resource
kubectl expose deployment nginx --port=80 --target-port=80 --type=NodePort --dry-run -o yaml > service.yaml2.1 Launch service
kubectl apply -f service.yaml2.2 Verify service ports
kubectl get svc3.0 Access the nginx service
Use a node IP with the exposed NodePort (e.g., node-ip:31190).
Why Helm?
Helm solves application management problems such as grouping YAML files, reusing them efficiently, and providing version control.
Practical steps
wget http://120.78.77.38/file/helm-v3.0.0-linux-amd64.tar.gz
# or download from the official site
tar -xf helm-v3.0.0-linux-amd64.tar.gz && cd linux-amd64
mv helm /usr/bin/ # copy binary to /usr/binConfigure Helm repository
helm repo add stable http://mirror.azure.cn/kubernetes/charts/ helm repo listInstall a sample application (k8s‑ui)
helm search repo weave # find the weave‑scope package
helm install ui stable/weave-scope # install the chart kubectl get pods # verify pods are runningModify the chart
Change the Service type from ClusterIP to NodePort:
kubectl edit svc ui-weave-scopeCreate a custom chart
helm create mychartReplace the default templates with the previously created deployment.yaml and service.yaml, then clean the templates/ directory:
rm -rf templates/*
mv /root/deployment.yaml ./
mv /root/service.yaml ./Delete the old nginx resources and install the new chart:
kubectl delete svc web
kubectl delete deployment web
helm install web mychart/Upgrade and list releases
helm upgrade web mychart/
helm listScale the deployment
helm upgrade web --set replicaCount=3 mychart/ # scale to 3 replicasRollback
helm rollback web 1 # revert to the first versionSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
