Kubernetes Helm charts for package management

Ryan Nakamura Feb 2026
4 tabs
#!/bin/bash
# Helm commands

# Add repositories
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

# Install chart
helm install web-app ./charts/web-app   --namespace production   --create-namespace   --values values-production.yaml

# Upgrade
helm upgrade web-app ./charts/web-app   --namespace production   --values values-production.yaml   --set image.tag=1.3.0

# Rollback
helm rollback web-app 1 --namespace production

# List releases
helm list --namespace production

# Show values
helm get values web-app --namespace production

# Template (render without installing)
helm template web-app ./charts/web-app --values values-production.yaml

# Uninstall
helm uninstall web-app --namespace production

# Package chart
helm package ./charts/web-app
helm push web-app-0.3.0.tgz oci://registry.example.com/charts

# Update dependencies
helm dependency update ./charts/web-app
4 files · bash, yaml Explain with highlit

Helm is the package manager for Kubernetes, bundling manifests into reusable charts. A Chart.yaml defines chart metadata and dependencies. values.yaml provides default configuration that users can override. Templates in the templates/ directory use Go template syntax with {{ .Values.key }}. _helpers.tpl defines reusable template functions. helm install deploys a chart, helm upgrade updates it. helm rollback reverts to a previous release. helm repo add registers chart repositories. The --set flag overrides values at install time. Subcharts in charts/ manage dependencies. Hooks run jobs at lifecycle events like pre-install and post-upgrade. Helm simplifies deploying complex applications with configurable, versioned packages.