# YAML Samples

Use YAML application, database, profile and Kubernetes examples to test scalar types, folded text and multi-document parsing.

> Canonical page: https://test.elysiatools.com/en/samples/yaml-samples

- **Category:** Data Formats

- **Keywords:** yaml, data format, configuration, serialization, markup

## Overview

Readable indentation can conceal a wrong parent key or an unexpected scalar type. Start with an application configuration, then test durations, folded biographies and multiple documents before handing YAML to a service.

## Examples

- **Simple Configuration File**: Basic application configuration file
- **Database Configuration**: Database connection configuration example
- **User Profile**: YAML structure with user information
- **Server Configuration**: Web server configuration example
- **Docker Compose Configuration**: Containerized application orchestration configuration
- **Internationalization Messages**: Multilingual messages configuration example
- **CI/CD Pipeline**: Continuous integration configuration example
- **Kubernetes Deployment**: Container orchestration deployment configuration

## How it works

- Choose one code card and copy all of it, preserving spaces and document separators.
- Load it in an external YAML parser with an explicit schema; inspect types as well as displayed values.
- Validate the resulting object against the target application separately, then check that serialization retains intended strings and structure.

## Frequently asked questions

### Will comments survive a load-and-dump conversion?

A basic object loader often drops comments and formatting. Use a document-preserving editor if comments matter to the handoff.

### Is {count} already substituted in translation messages?

No. «Internationalization Messages» stores quoted message text containing {count}. Your translation system performs interpolation later; preserve the placeholder during conversion.

## Related tools

- [HCL-YAML Converter](https://test.elysiatools.com/en/tools/hcl-yaml-converter): Convert between HashiCorp Configuration Language (HCL) and YAML formats for Terraform configurations
- [TOML-YAML Converter](https://test.elysiatools.com/en/tools/toml-yaml-converter): Convert between TOML and YAML formats with support for complex data structures and configuration files
- [YAML File Merger](https://test.elysiatools.com/en/tools/yaml-merger): Merge multiple YAML files with various strategies (deep merge, overwrite, combine arrays, etc.)
- [YAML Formatter](https://test.elysiatools.com/en/tools/yaml-formatter): Format and beautify YAML. Note: comments are lost (js-yaml limitation)
- [YAML-JSON Converter](https://test.elysiatools.com/en/tools/yaml-json-converter): Convert between YAML and JSON formats
- [TOML / INI / HCL / .env / Nix / dotenv ⇄ Kubernetes ConfigMap & Secret Config Format Bridge](https://test.elysiatools.com/en/tools/toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge): Convert configuration files between dotenv .env, TOML, INI, Java .properties, YAML, JSON, HCL (Terraform/Vagrant native syntax) and Nix attribute sets, and emit Kubernetes ConfigMap or Secret manifests. Template placeholders (${VAR}, {{var}}, envsubst) are preserved verbatim, type inference provenance (string/int/float/bool/list) is tracked, HCL block labels fold into nested keys, and a round-trip diff calls out non-equivalent settings — dropped keys, re-typed values and rewrites — instead of coercing them silently.
- [Config File Semantic Diff](https://test.elysiatools.com/en/tools/config-file-semantic-diff): Compare JSON, YAML, TOML, and dotenv configurations by key path while ignoring ordering and formatting noise.
- [Environment Config Diff Visualizer](https://test.elysiatools.com/en/tools/environment-config-diff-visualizer): Compare dev, staging, and production configuration bundles across JSON, YAML, TOML, or ENV formats and highlight drift, missing keys, and cleanup suggestions

## Related content

- [YAML Viewer Samples](https://test.elysiatools.com/en/samples/yaml-viewer-samples): Sample YAML files (app config, docker-compose, k8s) for the in-browser YAML Viewer
- [Distributed Tracing Samples](https://test.elysiatools.com/en/samples/distributed-tracing-samples): Comprehensive distributed tracing examples using Jaeger, OpenTelemetry, and other modern observability tools for microservices architecture
- [Grafana Advanced Application Samples](https://test.elysiatools.com/en/samples/grafana-samples): Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development
- [Kubernetes YAML Samples](https://test.elysiatools.com/en/samples/kubernetes-yaml): Complete Kubernetes YAML manifests for Deployment, Service, ConfigMap, Secret, Ingress and other essential resources
- [OpenAPI/Swagger Samples](https://test.elysiatools.com/en/samples/openapi-swagger): Comprehensive API documentation examples using OpenAPI 3.0 and Swagger specifications for RESTful services
- [Prometheus Monitoring](https://test.elysiatools.com/en/samples/prometheus): Comprehensive Prometheus monitoring and alerting system examples including custom metrics exporters, alert rule configuration, PromQL queries, and Grafana dashboard integration
