Helm Commands and Usage
1. Install a Release
helm install <release-name> <chart> [flags]- Example:
helm install Vatanboard-release Vatanboard - Description: Installs a Helm chart as a release. The release is named
Vatanboard-release, and the chart isvatanboard.
2. Uninstall a Release
helm uninstall <release-name> [flags]- Example:
helm uninstall vatanboard-release - Description: Uninstalls a Helm release. In this case, it removes the
Vatanboard-release.
3. Upgrade a Release
helm upgrade <release-name> <chart> [flags]- Example:
helm upgrade Vatanboard-release Vatanboard - Description: Upgrades an existing release. If the release does not exist, it installs it.
4. Upgrade or Install a Release
helm upgrade --install <release-name> <chart> [flags]- Example:
helm upgrade --install Vatanboard-release Vatanboard - Description: This command is useful when you want to upgrade a release if it exists or install it if it doesn't. It’s a combination of
helm upgradeandhelm install.
5. List Releases
helm list [flags]- Example:
helm list helm list -n Vatanboard-ns - Description: Lists all installed releases in the current namespace or specific namespace (
Vatanboard-nsin the example).
6. Add a Helm Repository
helm repo add <repo-name> <repo-url>- Example:
helm repo add traefik https://traefik.github.io/charts - Description: Adds a new Helm chart repository, such as the Traefik charts repository.
7. Update Helm Repositories
helm repo update- Example:
helm repo update - Description: Updates the Helm repositories to the latest versions of the charts.
8. Install a Release from a Specific Repository
helm install <release-name> <repo>/<chart> [flags]- Example:
helm install vatanboard-rls vatanboard-helm/vatanboard - Description: Installs a chart from a specific Helm repository. In this case, it installs
vatanboardfrom thevatanboard-helmrepository.
9. Search for a Chart in a Repository
helm search repo <chart-name>- Example:
helm search repo --versions helm search repo --versions | grep vatanboard - Description: Searches for a chart in the Helm repository, optionally filtering by versions.
10. Install with Custom Values
helm install <release-name> <chart> --set <key>=<value> [flags]- Example:
helm install vatanboard-rls vatanboard-helm/vatanboard -n vatanboard-ns --set deployment.backend.imageTag=8fcb21dade40a55feeeedcf70585d9ba8ad62980 - Description: Installs a chart with custom values passed as key-value pairs. In this case, it sets a custom
imageTagfor the backend deployment.
11. Uninstall with Namespace
helm uninstall <release-name> -n <namespace>- Example:
helm uninstall vatanboard-rls -n vatanboard-ns - Description: Uninstalls a release from a specific namespace (
vatanboard-ns).
12. Install with Namespace
helm install <release-name> <chart> -n <namespace>- Example:
helm install vatanboard-rls vatanboard-helm/vatanboard -n vatanboard-ns - Description: Installs a Helm release into a specific namespace (
vatanboard-ns).
13. List All Repositories
helm repo list- Example:
helm repo list - Description: Lists all Helm repositories that have been added.
14. Upgrade a Release with Namespace and Custom Values
helm upgrade <release-name> <chart> -n <namespace> --set <key>=<value>- Example:
helm upgrade vatanboard-rls vatanboard-helm/vatanboard -n vatanboard-ns --set deployment.backend.imageTag=8fcb21dade40a55feeeedcf70585d9ba8ad62980 - Description: Upgrades a release with a custom value passed and specifies a namespace.
15. Download a Helm Chart
helm pull <repo>/<chart> [--version <chart-version>] [--untar]- Example:
helm pull stable/nginx-ingress --untar - Description: Downloads the specified Helm chart. The
--untarflag extracts the chart after downloading.
16. Get the Entire values.yaml File of a Chart
helm show values <repo>/<chart>- Example:
helm show values stable/nginx-ingress - Description: Retrieves the full
values.yamlfile for the given chart.
17. Install or Upgrade a Release Using a Custom values.yaml File
helm install <release-name> <chart> -f <custom-values.yaml>
helm upgrade <release-name> <chart> -f <custom-values.yaml>- Example:
helm install vatanboard-rls vatanboard-helm/vatanboard -f custom-values.yaml helm upgrade vatanboard-rls vatanboard-helm/vatanboard -f custom-values.yaml - Description: Installs or upgrades a Helm release using a custom
values.yamlfile instead of passing key-value pairs individually.