Understanding the YAML format
YAML Ain’t Markup Language (YAML) is a file format used to create human-readable configuration. It is the file format most used to configure Kubernetes resources and is also the format used for many of the files in Helm charts.
YAML files follow a key-value format to declare configuration. Let’s explore the YAML key-value construct.
Defining key-value pairs
One of the most basic examples of a YAML key-value pair is shown here:
name: LearnHelm
In the preceding example, the name
key is given a LearnHelm
value. In YAML, keys and values are separated by a colon (:
). Characters written to the left of the colon represent the key, while characters written to the right of the colon represent the value.
Spacing matters in YAML format. The following line does not constitute a valid key-value pair:
name:LearnHelm
Note that a space is missing between the colon and the LearnHelm
string. This would result in a parsing error. A...