From the course: Kubernetes: Package Management with Helm

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Using the values.yaml file

Using the values.yaml file

From the course: Kubernetes: Package Management with Helm

Start my 1-month free trial

Using the values.yaml file

- The helm create command generates a values.yaml file with lots of defaults, like the chart.yaml file. The values file is a built-in object in helm, which means that the values in these files can automatically be templated using the template directive syntax. The opening and closing set of curly braces with the name of the file followed by the key of the key value pair you want to access. What's generated for us in the values.yaml file. Let's open it with our text editor and find out. First thing we see are some comments telling us this file is written in YAML. These are the default values for my helm release. And this is where you declare variables that are passed to any files you have stored in the templates directory. Next, we see some configuration values for pods. How many pod replicas you would like and information about the pods image. If we scroll down, we see some security context options, as well as…

Contents