Understanding .yaml

Bhavesh YadavBhavesh Yadav
2 min read

What is YAML?

  • YAML stands for "YAML Ain't Markup Language", emphasizing that it is not meant for document markup but for configuration.

  • It is a human-readable data serialization standard that uses indentation for structure, making it simple and intuitive.

Where is YAML Used?

  • Infrastructure as Code (IaC): Managing configurations for tools like Kubernetes (k8s), Ansible, and Terraform.

  • CI/CD Pipelines: Configuration for tools like GitHub Actions, Jenkins, and CircleCI.

  • Cloud and Container Management: Define configurations for Docker Compose and Kubernetes manifests.

  • Application Configurations: Store settings for software applications and APIs (e.g., app.yaml in Python).

How is YAML Helpful?

  • Readability: Clear structure with indentation, avoiding complex syntax like brackets and semicolons.

  • Flexibility: Supports multiple data structures like dictionaries, lists, and scalars.

  • Compatibility: Used by a variety of tools and frameworks across DevOps, cloud, and software development.

IT Follows Key value pairs for example code be like :

name: Bhavesh  # Scalar  
languages:     # Sequence  
  - Java  
  - Python  
  - YAML  
settings:      # Mapping  
  theme: dark  
  notifications: enabled

Tools for Writing and Managing Large YAML Files

  • Monokle: Provides YAML validation and visualization, helping to catch errors and ensure schema compliance.

  • Lens: A Kubernetes IDE that makes YAML editing for Kubernetes manifests intuitive and error-free.

  • Datree: Enforces YAML best practices and policies for CI/CD pipelines.

YAML is a cornerstone of modern DevOps and cloud workflows. Its simplicity, combined with its versatility, makes it an essential tool for developers, DevOps engineers, and anyone managing complex configurations.

0
Subscribe to my newsletter

Read articles from Bhavesh Yadav directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Bhavesh Yadav
Bhavesh Yadav

Final Year student @VIT VELLORE