THE DEV BENCH
📄 YAMLhard

6. A minimal Kubernetes Pod

Write a minimal Kubernetes Pod manifest: • apiVersion: v1 • kind: Pod • metadata.name: web • spec.containers: a list with one item having name "web" and image "nginx:1.27"

How to approach this

This is the YAML you'll write most in DevOps. `spec.containers` is a LIST of maps — the container is `- name: web` then `image: nginx:1.27` aligned under the dash. Mind the indentation: containers is under spec, and the list item's fields align with each other.

config.yaml