Resume
Pod.yaml
file with the essential Kubernetes properties: API version, kind, metadata, and spec.API version
as v1
, kind
as Pod
, and in metadata
, add a name
(e.g., nginx
) and labels
(e.g., app: nginx, tier: frontend).spec
, define containers
as a list, with each container having a name
and image
(e.g., nginx
image).kubectl create -f Pod.yaml
to create the pod. Verify its state with kubectl get pods
and get detailed info with kubectl describe pod <pod-name>
.