docs / articles / Helm Retrieve Configuration Values

Helm Retrieve Configuration Values

Noah Aug 16, 2026 2026-08-16 04:58:21

If you're a developer working with Go and need to fetch values from a YAML or TOML file, you might be wondering how to use the "helm get values" command effectively. This guide will walk you through the process, ensuring you get the most out of your Helm values files.

Helm
Helm

Before we dive into the specifics, let's ensure we're on the same page. Helm is a package manager for Kubernetes that makes it easy to find, share, and use software built for Kubernetes. Helm packages are called charts, and they often come with default values files in the form of YAML or TOML.

an image of a helmet with measurements and instructions for the parts to be used in this project
an image of a helmet with measurements and instructions for the parts to be used in this project

Understanding Helm Values Files

Helm values files are used to customize the behavior of a Helm chart. They often contain default values that can be overridden by the user. Understanding how to use these files efficiently is crucial for streamlining your workflow with Helm.

Headgear Alignment Chart
Headgear Alignment Chart

There are two main types of values files: those that are included with the chart (default values) and those that you provide (user values). In this guide, we'll focus on fetching and examining values from user-provided files.

Basic Syntax for helm get values

the helmet of salvation ephesians 1 / 2 is shown with pink hair on it
the helmet of salvation ephesians 1 / 2 is shown with pink hair on it

The basic syntax for the "helm get values" command is as follows:

helm get values [CHART] [flags]

The command fetches and displays the values from the specified chart's user-provided values file, if available. If no user-provided values file exists, it will display the default values from the chart.

Client Challenge
Client Challenge

Using helm get values -f

The "-f" or "--values" flag allows you to specify a custom values file to fetch values from. Here's the syntax:

helm get values [CHART] -f [VALUES_FILE]

the safety helmets guide for construction workers is shown in this graphic above it's description
the safety helmets guide for construction workers is shown in this graphic above it's description

For example, if you have a custom values file named "my-values.yaml", you can fetch its values using the following command:

helm get values my-chart -f my-values.yaml

My Core Values
My Core Values
a helmet is on fire in the middle of a dark area with other flames surrounding it
a helmet is on fire in the middle of a dark area with other flames surrounding it
an image of different types of helmets in english and chinese characters, including the headgear
an image of different types of helmets in english and chinese characters, including the headgear
"Viking Valor: Celtic Knot Helm"
"Viking Valor: Celtic Knot Helm"
Hats
Hats
a man wearing a helmet with a skull on it
a man wearing a helmet with a skull on it
Client Challenge
Client Challenge
a drawing of a helmet with spikes on it
a drawing of a helmet with spikes on it
a black and white drawing of a knight's helmet with a star above it
a black and white drawing of a knight's helmet with a star above it

Advanced Usage of helm get values

In some cases, you might need to fetch values from multiple files or from the Kubernetes cluster itself. Helm provides commands to handle these scenarios as well.

Fetching values from multiple files

To fetch values from multiple files, you can use the "-f" flag multiple times.

helm get values my-chart -f values1.yaml -f values2.toml

In this example, Helm will merge the values from both "values1.yaml" and "values2.toml" and display them.

Fetching values from a running release

If you have a release of a chart installed in your Kubernetes cluster, you can fetch its current values using the "helm get values" command with the "--from:- ```