kubectl apply sends declarative YAML models to a Kubernetes cluster, creating or updating the resources described by fields such as apiVersion, kind, metadata, and spec. section 15.2
Deploy and observe a Pod
Run kubectl apply -f ch15/exercises/pi/pod.yaml, then kubectl get pods and kubectl logs pi. If the container exits, Kubernetes repeatedly replaces it; repeated failures can produce CrashLoopBackOff. section 15.2





