liveBook · Manning

YAML

As explained in Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

YAML is a human-readable data-serialization standard commonly used for configuration and resource manifests.

YAML is a human-readable, structured data-serialization format used to define Kubernetes resources and compose applications. Its declarative structure replaces complex multi-container command lines with a reusable file. section 8.0 section 9.4

YAML connects container workflows to several operational tools:

  • Kubernetes YAML can create containers and pods from Podman-managed definitions and can launch them with podman play kube. section 8.0
  • Compose YAML orchestrates multiple containers on one node, while Kubernetes targets orchestration across multiple nodes. section 9.4
  • Podman can run compose YAML through its compatible REST API, including rootless containers. section 9.4

A compose YAML definition

A docker-compose.yaml file can define an application image, bind mount, named volume, and port mapping: service myapp uses quay.io/rhatdan/myimage:latest, mounts ./html at /var/www/html, mounts myapp_vol at /vol, and maps port 8080 to 80. section 9.4

cat > docker-compose.yaml << _EOF
version: "3.7"
services:
  myapp:
    image: quay.io/rhatdan/myimage:latest
    volumes:
      - ./html:/var/www/html
      - myapp_vol:/vol
    ports:
      - 8080:80
volumes:
  myapp_vol: {}
_EOF

Inspect a complete compose YAML file showing service, image, volumes, ports, and named-volume declarations. section 9.4

How Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more covers it

How deep it goes
Explains YAML as structured application definition and demonstrates fields, but does not descend into YAML syntax or parsing internals.
Examples
Uses Kubernetes resource files and a compose file defining an image, bind mount, named volume, and port mapping.
What it assumes
Assumes familiarity with Podman containers, pods, and command-line workflows while introducing YAML as their structured representation.
What you can do after
Operate/configure multi-container applications by writing YAML consumed by podman play kube or docker-compose.
How it connects
Connects YAML with Kubernetes, Podman, docker-compose, containers, pods, volumes, and REST APIs.

Also explained in

Compare how 16 books explain YAML →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more. The section links point to the parts of the book it draws on.