docs / articles / Helm: Retrieve Default Chart Values

Helm: Retrieve Default Chart Values

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

Ever found yourself wondering, "How can I get default values for my Helm chart?" You're not alone. Helm, the package manager for Kubernetes, uses YAML files to describe charts. These files often have default values that you might want to know and potentially override. Let's dive into how you can comprehend and manage these default values.

two different views of the head and hair
two different views of the head and hair

But first, let's briefly recap. A Helm chart is essentially a collection of files that describes a related set of Kubernetes resources. These could be deployments, services, secrets, and more. The values.yaml file within a chart contains the default configuration for these resources.

helm get default values for chart
helm get default values for chart

Understanding Helm Chart Default Values

Before we start, it's crucial to understand that default values in Helm are defined in the values.yaml file. They are pre-set configurations that will be used unless overridden during the installation or upgrade of the chart.

The person you become in 5 years
The person you become in 5 years

You can find these default values by looking at the YAML syntax in the values.yaml file. Here's a simple example:

Example of Default Values in values.yaml

the digital leadership process is depicted in this graphic drawing, which shows how to use it
the digital leadership process is depicted in this graphic drawing, which shows how to use it

Let's consider a simple Helm chart for a Nginx deployment:

```yaml nginx: image: nginx:1.16 service: type: ClusterIP port: 80 ```

In this example, the default image is Nginx:1.16, and the service is configured to be of type ClusterIP and listens on port 80.

Accessing Default Values in the Chart

the different shades of light and shadow for eyeshades, from dark to light
the different shades of light and shadow for eyeshades, from dark to light

Now, if you want to access these default values without actually installing the chart, you can use the following command:

```bash helm inspect values ```

Replace with the name of your chart. This command will display the default values defined in the values.yaml file.

Overriding Default Values

an old computer game map with many different items
an old computer game map with many different items

While understanding default values is helpful, the real power comes from being able to override them. You might want to use a specific Nginx version or expose your service on a different port. Here's how you can do that.

Using --set Key=Value

a diagram showing the different types of product development
a diagram showing the different types of product development
an iphone screen with the text, choose how you're feeling right now neutral
an iphone screen with the text, choose how you're feeling right now neutral
How to expand color palette with ggplot and RColorBrewer | R-bloggers
How to expand color palette with ggplot and RColorBrewer | R-bloggers
99% of teams use 𝘰𝘯𝘦 method to solve problems. | Alan (AJ) Silber
99% of teams use 𝘰𝘯𝘦 method to solve problems. | Alan (AJ) Silber
Power BI & DAX: How to Make Waterfall Charts Work (showing starting and ending values)
Power BI & DAX: How to Make Waterfall Charts Work (showing starting and ending values)
a poster with numbers and fractions on it
a poster with numbers and fractions on it
Heat Map Chart Coloring
Heat Map Chart Coloring
Adopt me trading values saved me
Adopt me trading values saved me
Check out this image
Check out this image

The simplest way to override a default value is to use the --set flag when installing or upgrading a chart. The syntax is --set key=value. Let's override the Nginx image and the service port:

```bash helm install my-release ./nginx --set nginx.image=nginx:1.17 --set nginx.service.port=8080 ```

In this example, the Nginx image is overridden to use version 1.17, and the service port is changed to 8080.

Using a Values File

For more complex overrides, it's easier to use a values file. This file can contain all the overrides you want to apply to a chart. You can then pass this file to the helm install or upgrade command using the -f flag.

Remember, when using a values file, you're not setting default values for the chart, you're overriding them. If you want to set new default values, you'll need to modify the values.yaml file in the chart itself.

Getting and managing default values for Helm charts is a powerful and necessary skill for any Kubernetes user. Understanding how to access and override these values can help you better tailor your deployments to your specific needs.

Furthermore, being proficient in default values opens up a world of customization possibilities. From tweaking resource limits to adjusting replica counts, you'll be well-equipped to fine-tune your Kubernetes deployments. So, go ahead, explore, and make your deployments truly yours!