Feedback

Chat Icon

Cloud-Native Microservices With Kubernetes - 2nd Edition

A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in Kubernetes

Everything You Need to Know to Start Using Helm
93%

Understanding Chart Versions and Upgrading Releases

As we have seen before, the general syntax for upgrading a chart is:

helm upgrade [RELEASE_NAME] [CHART] [flags]

But we can also use the upgrade --install or upgrade -i command that could upgrade an existing release or install it if it does not exist.

helm upgrade --install [RELEASE_NAME] [CHART] [flags]

Let's see an example of how to upgrade a release to a specific chart version. First, we need to find the available versions of the chart we want to install or upgrade. We can do this using the helm search repo command. The general syntax is:

# Add the Bitnami repository if not already added
helm repo add bitnami https://charts.bitnami.com/bitnami

# Find the latest versions of the WordPress chart

Cloud-Native Microservices With Kubernetes - 2nd Edition

A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in Kubernetes

Enroll now to unlock all content and receive all future updates for free.