Get Helm Values For a Helm Release

February 10, 2021

Introduction

Helm templates provide a built-in Values object for accessing Helm chart values. The changes in Helm values are stored with every update.

Comparing versions of Helm values and reviewing old releases is good practice for keeping track of changes.

This article explains how to get Helm Values for a Helm release.

Get Helm Values for a Helm Release

Prerequisites

Get Helm Values

To get values from a Helm release, use:

helm get values <release name>

For example:

helm get values phoenix-chart

The output prints the user-supplied values for the current Helm release in YAML format:

Terminal output of the command helm get values

The user-supplied values are set when deploying a Helm chart. The set values override computed values.

Get Computed Values

Get computed values for a Helm release with:

helm get values <release name> -a

Or alternatively:

helm get values <release name> --all

For example:

helm get values phoenix-chart -a

The output prints the computed values for the current Helm release in YAML format:

Terminal output of the command helm get all

When there are no user-supplied values, the computed values are pulled from the template to show a default value.

Get Values from a Previous Revision

Helm releases usually have multiple revisions. The values from any previous revision are all stored as revisions.
To get values from a previous revision of a Helm release, use:

helm get values <release name> --revision <release number>

For example, to get the values from the first revision:

helm get values phoenix-chart --revision 1

Terminal output of the command helm get values --revision

Get Values Output Format

The output is in the YAML format by default. Display the output in a specified format with:

helm get values <release name> -o <data format>

Available data formats are:

      • Table
      • JSON 
      • YAML (default)

For example, to get values of a helm release from the first revision in JSON format, use:

helm get values phoenix-chart --revision 1 -o json

Terminal output of the command helm get values --revision 1 json

Conclusion

A Helm release has Values stored with the initial release. As newer releases get deployed, the values of a Helm chart change. Using the helm get values command downloads the Values file for a specified release.

Once you review the revisions, you may decide to start from scratch or rollback to a past revision. To help you do it easily, read our articles on how to roll back changes in Helm and how to create a Helm chart next.

Milica Dancuk
Milica Dancuk is an aspiring technical writer at phoenixNAP and a data nerd. Her background in Electrical Engineering and Computing and her teaching experience give her a unique set of skills - being able to easily explain complex technical concepts through her content.
Next you should read
How To Create A Helm Chart
February 3, 2021

Helm charts are application packages that use Kubernetes resources. They provide a template structure...
Read more
How to Roll Back Changes with Helm
February 3, 2021

Helm is a package manager for Kubernetes that offers a host of useful options, including rolling back...
Read more
How to Add, Update or Remove Helm Repositories
December 21, 2020

Helm is Kubernetes' equivalent to apt and yum. It is a package manager used for deploying applications...
Read more
How to Install Helm on Ubuntu, Mac and Windows
December 10, 2020

Helm is a package manager for Kubernetes that simplifies deployment process. Follow this...
Read more
  • © 2021 Copyright phoenixNAP | Global IT Services. All Rights Reserved.