How to install a specific Chart version
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.
Introduction
When working with Kubernetes, Helm is an essential tool that helps in managing packages of pre-configured Kubernetes resources, known as charts. Helm charts facilitate easy deployment and management of even the most complex applications running in Kubernetes. However, there may be scenarios where specific versioning of a Helm chart is required, either to ensure compatibility with your application or to leverage particular features or updates. Below is a detailed guide on how to install a specific Helm chart version.
Prerequisites
Before installing a specific Helm chart version, ensure you have the following:
- Helm installed: Refer to the official Helm documentation for installation instructions tailored to your operating system.
- Kubernetes cluster: A functioning Kubernetes cluster with
kubectlaccess credentials configured. - Set up Helm repository: Add the Helm repository where your desired chart resides using
helm repo add.
Steps to Install a Specific Helm Chart Version
- Identify the Helm Chart VersionThe first step is to identify the specific version of the chart you wish to install. Use the following Helm command to list available versions of a specific chart:
Example:
This command will list all available versions of the chart along with a brief description.
- Install a Specific Chart VersionOnce you have identified the correct version, use the following command to install it:
Example:
In this command:
<release-name>is a custom name you give to your Helm release.<repository-name>is the name of your Helm repository.<chart-name>is the specific chart you want to install.<chart-version>specifies the version of the chart you are installing.
- Verify InstallationTo ensure your chart has been installed correctly, use the following command:
This will display a list of your active chart releases. Verify the REVISION and STATUS to ensure the correct version is deployed and running.
Additional Details
Rolling Back to a Previous Version
If at any point you need to revert to a previously installed version of a chart, Helm provides a rollback feature. Execute the following command, specifying the release name and revision number:
Example:
Helm Versioning Format
Helm uses semantic versioning (major.minor.patch) to manage chart versions. Understanding this versioning system can assist in assessing what changes might have been introduced in a particular release. For example:
- Major Version: Increases reflect incompatible API changes.
- Minor Version: Added functionality in a backwards-compatible manner.
- Patch Version: Backward-compatible bug fixes.
Upgrading an Installed Chart
To upgrade to a different version of an already installed chart, use:
Example:
Summary Table
| Step | Command/Action |
| List available chart versions | helm search repo <repository-name>/<chart-name> --versions |
| Install a specific chart version | helm install <release-name> <repository-name>/<chart-name> --version <chart-version> |
| Verify installation | helm list |
| Rollback to a previous version | helm rollback <release-name> <revision-number> |
| Upgrade Chart Version | helm upgrade <release-name> <repository-name>/<chart-name> --version <new-chart-version> |
Conclusion
Installing a specific version of a Helm chart can be critical for ensuring compatibility and stability in your applications running on Kubernetes. By following these detailed steps, you can easily manage and control the versions of the applications you deploy, ensuring that they meet the specific needs and requirements of your environment. Helm's semantic versioning, rollback capabilities, and easy upgrade paths make it a powerful tool for Kubernetes package management.
Related reading
- How to install Hive Metastore in Kubernetes?
- How to install Kubernetes cluster behind proxy with Kubeadm?
- How to install specific version of Kubernetes?
- How to integrate Kubernetes with Gitlab
- How to install an npm package from GitHub directly
- How to install git on a docker ubuntu image?
- How to invoke the Pod proxy verb using the Kubernetes Go client?
- How to kill pods on Kubernetes local setup

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.