レッスン 1

What Is YAML? 日本語ガイド

日本語の yaml what is yaml ガイド: Understand YAML structure and where developers use it.

このコンテンツはまだ日本語で用意されていません。ローカライズが完了するまで English 版を表示しています。

YAML (YAML Ain't Markup Language) is a text format for structured data that prioritizes readability. Developers use it when humans edit configuration files by hand more often than machines stream bytes.

Three core structures

  1. Mappings — key/value objects, written with indentation:
    app:
      name: DevCove
    
  2. Sequences — ordered lists, often with -:
    features:
      - json
      - yaml
    
  3. Scalars — strings, numbers, booleans, and nulls.

Indentation matters

Unlike JSON's braces, YAML uses whitespace to show nesting. A sibling key at the wrong indent level changes the entire tree—and parsers fail with line/column errors.

Comments

YAML supports # comments, which is one reason teams choose it for Kubernetes and CI files that need inline explanations.

Where you see YAML

  • Kubernetes manifests (Deployment, Service, ConfigMap)
  • GitHub Actions and GitLab CI workflows
  • Docker Compose files
  • Ansible playbooks and Helm values.yaml

YAML describes data shape. It does not execute commands by itself—tools like kubectl, Actions runners, or Compose interpret the files.

実践したいときは関連する DevCove ツールを使えます。任意であり、このレッスンの必須部分ではありません。

関連ツールを開く

コース概要へ戻る