YAML (YAML Ain't Markup Language)
What is YAML (YAML Ain't Markup Language)?
YAML (YAML Ain't Markup Language): A human-readable data serialisation format widely used for configuration files (Docker Compose, Kubernetes, GitHub Actions, Ansible). Whitespace-significant — indentation defines structure. Pronounced "YAM-ul". YAML is a human-friendly format for configuration and data. Docker Compose, Kubernetes, GitHub Actions, GitLab CI and Ansible all use it. Indentation defines the structure, and it is pronounced "YAM-ul".
Frequently asked questions about YAML (YAML Ain't Markup Language)
How is YAML (YAML Ain't Markup Language) used in practice?
It is easier to read than JSON for people, with less punctuation and support for comments. The same indentation that makes it readable also makes it fragile: one wrong space changes the meaning or breaks the file.
What should you keep in mind with YAML (YAML Ain't Markup Language)?
A few classic traps are worth knowing. Unquoted values like no, yes and on may be read as booleans, and values like 22:22 or version numbers like 1.10 may be read as numbers. Quote strings when in doubt. Use an editor with YAML support and a schema for the tool you configure, and validate files in CI, so mistakes are caught before a deploy fails.
At a glance
| Category | Core glossary |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |