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
30 lines
sample-10kb.yaml
300 lines
sample-50kb.yaml
1,500 lines
sample-100kb.yaml
3,000 lines
sample-500kb.yaml
15,000 lines
sample-docker-compose.yaml
90 lines
sample-k8s-deployment.yaml
60 lines
sample-github-actions.yaml
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
| Feature | YAML | JSON | TOML |
|---|---|---|---|
| Comments | Yes (#) | No | Yes (#) |
| Readability | Excellent | Good | Excellent |
| Anchors/aliases | Yes (&/*) | No | No |
| Multi-document | Yes (---) | No | No |
| Indentation-sensitive | Yes (error-prone) | No (braces) | No (sections) |
| Used by | K8s, Docker, GitHub Actions | APIs, package.json, tsconfig | Cargo, 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/numbersTechnical specifications
| Full name | YAML Ain't Markup Language |
| Extensions | .yaml, .yml |
| MIME type | text/yaml (RFC pending) |
| Current version | YAML 1.2.2 (2021) |
| Encoding | UTF-8 (recommended) |
| Superset of | JSON (valid JSON is valid YAML) |
Frequently Asked Questions
Other data formats
Related reading
Mocking REST APIs with JSON Fixtures
Fast frontend iteration without a backend. MSW, json-server, and sample fixtures for users, products, and nested objects. Copy-paste examples.
Sample JSON Data for API Testing and Mocking
Free sample JSON files for testing REST APIs. Users, products, nested objects, GeoJSON, and API response wrappers with code examples.
Seeding Test Databases with Sample Data — SQL, JSON, CSV
How to seed development and staging databases using sample SQL dumps, JSON files, and CSV imports from TrueFileSize. Covers PostgreSQL, MySQL, SQLite, MongoDB, and Prisma.