A Pod specification is declarative YAML describing a Pod and its containers. At minimum, it names the Pod and identifies each container's image; Kubernetes then schedules the Pod and starts the containers. section 15.2
A Kubernetes resource model uses four top-level fields:
- apiVersion selects the supported API version. section 15.2
- kind identifies the resource type, such as Pod. section 15.2
- metadata names the object and can carry labels. section 15.2
- spec contains resource-specific configuration, including the Pod's container list. section 15.2
Minimal Pod
apiVersion: v1 kind: Pod metadata: name: pi spec: containers: - name: pi image: kiamol/ch05-pi Apply it with kubectl apply -f pod.yaml, inspect it with kubectl get pods, and read output with kubectl logs pi. A container that exits is replaced by the Pod.

