docs / articles / Get Helm Chart Values Effortlessly

Get Helm Chart Values Effortlessly

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

When working with Kubernetes Helm charts, extracting values and understanding how they impact your deployments is a crucial operation. This guide walks you through the process of accessing, modifying, and using these values effectively to fine-tune your charts.

the value wheel for children to learn how to use it in their own home or classroom
the value wheel for children to learn how to use it in their own home or classroom

Helm charts use the YAML format to define values, which are essentially configuration options for your applications. These values enable you to customize your deployments according to your specific use case, environment, or application requirements.

How to make a Helm chart in 10 minutes
How to make a Helm chart in 10 minutes

Understanding Helm Chart Values

Before diving into how to access Helm chart values, it's essential to grasp their structure. Values are organized in a hierarchical manner, mirroring your chart's folder structure. The top-level keys correspond to the main folders in your chart, while nested keys represent subfolders.

by: imagine_values Motivational Values Chart, Visualize Value, Types Of Values Explained, Self-improvement Value Analysis, How To Create A Values-driven Life, What Are Your Values?, Motivation And Discipline Graph, What Are Some Examples Of Personal Values?, Values For Self-discovery
by: imagine_values Motivational Values Chart, Visualize Value, Types Of Values Explained, Self-improvement Value Analysis, How To Create A Values-driven Life, What Are Your Values?, Motivation And Discipline Graph, What Are Some Examples Of Personal Values?, Values For Self-discovery

A typical values.yaml file might look like this:

global:
  env: staging

service:
  type: LoadBalancer
  ports:
    http: 80

ingress:
  enabled: true
  annotations:
    kubernetes.io/ingress.class: nginx

Accessing Default Values

Value Domain and clusters of the Value Domain Mapping Model
Value Domain and clusters of the Value Domain Mapping Model

To view the default values defined in a Helm chart, use the `helm inspect values` command followed by the chart path. For example, to inspect the default values in the official MySQL chart, you would run:

helm inspect values stable/mysql

Accessing Custom Values

a diagram showing the different types of lines and shapes in which each line is represented
a diagram showing the different types of lines and shapes in which each line is represented

When you install or upgrade a release, Helm stores the custom values used in the release's manifest. You can view these values using the `helm get values` command, followed by the release name. For instance:

helm get values my-release

Modifying and Using Helm Chart Values

Knowing your values ✨
Knowing your values ✨

Once you've familiarized yourself with Helm chart values, it's time to explore how to modify and use them to your advantage.

Providing Values at Install/Upgrade Time

an info sheet describing how to be a leader who people love
an info sheet describing how to be a leader who people love
the effective leader's daily compass is shown with arrows pointing to different areas in it
the effective leader's daily compass is shown with arrows pointing to different areas in it
an old poster shows the different types of ships that were used to sail in the ocean
an old poster shows the different types of ships that were used to sail in the ocean
Well Rounded Life, Wheel Of Life Vision Board, Wheel Of Life Goals, Life Wheel Categories And Goals, Life Wheel Example, Life Circle, Areas Of Life Wheel, Life Wheel Goal Tracking, Wheel Of Life Exercise
Well Rounded Life, Wheel Of Life Vision Board, Wheel Of Life Goals, Life Wheel Categories And Goals, Life Wheel Example, Life Circle, Areas Of Life Wheel, Life Wheel Goal Tracking, Wheel Of Life Exercise
a black and white photo with the words empathy scale on it's side
a black and white photo with the words empathy scale on it's side
a diagram explaining the different levels of service learning and how they are used to teach them
a diagram explaining the different levels of service learning and how they are used to teach them
a poster with an image of a person's head in the center
a poster with an image of a person's head in the center
Roadmap For Change Management, Organizational Change Management Plan, Change Management Strategy Guide, Change Leadership Management Guide, Change Management Tools Pdf, Strategic Management Tools Chart, Change Management Strategy Chart, Metrics-based Company Management Guide, Operational Production Management Guide
Roadmap For Change Management, Organizational Change Management Plan, Change Management Strategy Guide, Change Leadership Management Guide, Change Management Tools Pdf, Strategic Management Tools Chart, Change Management Strategy Chart, Metrics-based Company Management Guide, Operational Production Management Guide

When installing or upgrading a release, you can provide custom values using the `-f` or `--values` flag. You can pass a values.yaml file or even define them inline. Here's an example of installing the MySQL chart with custom values:

helm install --values my-values.yaml stable/mysql

Using Values in Your Charts

Within your charts, you can reference values using the `{{ .Values.key }}` syntax. For example, you might use a value to set a configuration file:

```yaml env: variable: {{ .Values.global.env }} ```

Using Values for Advanced Configuration

You can also use values in combination with conditions and loops to enable advanced configuration scenarios. For instance, you might use conditions to enable or disable certain features based on environment-specific values.

Best Practices for Helm Chart Values

worthwhile Considerations

When designing your chart's values structure, consider your users' needs and the complexity of your application. A well-organized values.yaml with clear comments will ensure a smoother deployment experience.

Version Control and Documentation

Store your values.yaml file alongside your chart in version control, and provide clear documentation on how to use and customize it. This will help other users and contributors understand your chart's configuration better.

In summary, mastering Helm chart values is a vital skill for anyone working with Kubernetes. By understanding and effectively using values, you'll be able to create more flexible, customizable, and maintainable charts. Happy charting!