Helm Basics

Install and upgrade third-party apps with Helm charts.

  • helm install
  • helm upgrade
  • helm rollback
  • charts
  • values.yaml

Helm Basics

Install and upgrade third-party apps with Helm charts.

Commands

CommandWhat it does
helm repo add bitnami https://charts.bitnami.com/bitnamiAdd a chart repo
helm install shop-redis bitnami/redis -n shop --create-namespaceInstall a release
helm list -AAll releases everywhere
helm upgrade shop-redis bitnami/redis -f values.yamlUpgrade with custom values
helm rollback shop-redis 1Roll back to revision 1

Example

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install shop-redis bitnami/redis -n shop --create-namespace

FAQ

Where do my custom values go?

A values.yaml passed with -f (or --set flags); never edit chart defaults in place — upgrades would wipe them.

How do I cleanly remove everything?

helm uninstall <release> -n <ns>, then delete the namespace if Helm created it.

常見問題

Where do my custom values go?
A values.yaml passed with -f (or --set flags); never edit chart defaults in place — upgrades would wipe them.
How do I cleanly remove everything?
helm uninstall <release> -n <ns>, then delete the namespace if Helm created it.

Kubernetes