Toolbox · Kubernetes
Helm Commands
Chart discovery, rendering, safe upgrades, rollbacks and debugging templates.
On this page
Repositories and charts
| Command | Purpose |
|---|---|
helm repo add name https://… / helm repo update | Manage repos |
helm search repo name --versions | Available chart versions |
helm show values repo/chart --version 1.2.3 | Default values |
helm pull repo/chart --version 1.2.3 --untar | Inspect chart source |
helm push chart-1.2.3.tgz oci://registry.example.com/charts | Publish to OCI |
Render and validate
| Command | Purpose |
|---|---|
helm template rel ./chart -f values.yaml | Render without a cluster |
helm template rel ./chart | kubectl apply --dry-run=server -f - | Server-side validation |
helm lint ./chart | Chart checks |
helm install rel ./chart --dry-run --debug | Render with cluster info |
Install, upgrade, rollback
| Command | Purpose |
|---|---|
helm upgrade --install rel ./chart -n ns --create-namespace -f values.yaml --atomic --timeout 5m | Idempotent deploy, roll back on failure |
helm diff upgrade rel ./chart -f values.yaml | Preview changes (plugin) |
helm history rel -n ns | Revisions |
helm rollback rel 3 -n ns | Caution roll the release back to revision 3 |
helm uninstall rel -n ns --keep-history | Destructive delete the release’s resources, keep its history |
Inspect releases
| Command | Purpose |
|---|---|
helm list -A | All releases |
helm get values rel -n ns / --all | Effective values |
helm get manifest rel -n ns | What was applied |
helm status rel -n ns | Notes and status |