CKAD field manual
k8s helm install example
Find the chart with helm search repo, install repo/chart, always -n. A .tgz path is the fallback.
helm repo add local http://127.0.0.1:8080
helm repo update
helm search repo local
helm install web local/web -n app --set replicaCount=2
helm upgrade --install web local/web -n app --version 0.2.0 --set replicaCount=3
helm rollback web 1 -n app
helm uninstall web -n app
helm install web ./web-0.1.0.tgz -n app --set replicaCount=2
helm upgrade web ./web-0.2.0.tgz -n app --set replicaCount=3
helm list -n app -a
helm status web -n app
helm get values web -n app
helm history web -n app
helm uninstall web -n app --no-hooks
helm list -n app -a
Fields
- helm repo
- add + update before search. The URL is in the question. Repo may already be there.
- helm search
- Prints repo/chart and versions. That name is what install wants.
- helm install
- repo/chart, or a path. Always -n. --set for values.
- helm upgrade
- Same chart ref as install. --install creates the release if it is missing.
- helm list
- -a shows failed and pending. Without it they are hidden.
- helm uninstall
- pending-install: uninstall, then install again. --no-hooks if it sticks.
- helm rollback
- Revision number from helm history. 1 is the first install.
- --set
- Chart key. replicaCount is common, not replicas.
Watch
- helm list hides failed / pending unless you pass -a. Always -n.
- Chart is repo/name (local/web) after helm search repo. A .tgz path also works.
- pending-install: helm uninstall <rel> -n <ns>, then install again. --no-hooks if it sticks.
Official docs Using Helm