Skip to content
>_ TrueFileSize.com

Sample YAML File Download — Free DevOps Config Examples

Download free YAML config file examples from 1KB to 500KB — Docker Compose, Kubernetes manifests, GitHub Actions CI/CD workflows, and deeply nested structures with anchors. Use these YAML test files for parser validation, DevOps pipeline testing, and config management tools.

sample-1kb.yaml

1 KB

30 lines

sample-10kb.yaml

10 KB

300 lines

sample-50kb.yaml

50 KB

1,500 lines

sample-100kb.yaml

100 KB

3,000 lines

sample-500kb.yaml

500 KB

15,000 lines

sample-docker-compose.yaml

3 KB

90 lines

sample-k8s-deployment.yaml

2 KB

60 lines

sample-github-actions.yaml

2.5 KB

75 lines

Use cases for sample YAML files

  • Testing YAML parsers (js-yaml, PyYAML, ruamel.yaml)
  • Validating Docker Compose and Kubernetes configs
  • Testing GitHub Actions / GitLab CI workflow parsing
  • Benchmarking YAML vs JSON vs TOML parsing performance
  • Testing YAML linters and schema validators
  • Verifying anchor/alias expansion in YAML processors

YAML vs JSON vs TOML for configuration

FeatureYAMLJSONTOML
CommentsYes (#)NoYes (#)
ReadabilityExcellentGoodExcellent
Anchors/aliasesYes (&/*)NoNo
Multi-documentYes (---)NoNo
Indentation-sensitiveYes (error-prone)No (braces)No (sections)
Used byK8s, Docker, GitHub ActionsAPIs, package.json, tsconfigCargo, pyproject, Hugo

Common YAML gotchas

# Norway problem: "NO" is parsed as boolean false
country: NO      # ❌ parsed as false
country: "NO"    # ✅ string "NO"

# Version numbers: 1.0 is parsed as float
version: 1.0     # ❌ parsed as 1 (number)
version: "1.0"   # ✅ string "1.0"

# Octal numbers: 0777 is NOT 777
mode: 0777       # ❌ parsed as 511 (octal)
mode: "0777"     # ✅ string "0777"

# Always quote strings that look like booleans/numbers

Technical specifications

Full nameYAML Ain't Markup Language
Extensions.yaml, .yml
MIME typetext/yaml (RFC pending)
Current versionYAML 1.2.2 (2021)
EncodingUTF-8 (recommended)
Superset ofJSON (valid JSON is valid YAML)

Frequently Asked Questions

Other data formats

Related reading