Pods

View saved

A pod is a wrapper

A pod usually runs a single container. Sidecar patterns add helpers in the same pod sharing network and storage volumes.

Run a quick pod

Imperative commands are fine for learning; YAML comes soon.

kubectl run web --image=nginx:1.27 --port=80
kubectl get pods
kubectl describe pod web

Pod lifecycle

Pods are mortal. If a bare pod dies, nothing recreates it unless a controller (like a Deployment) owns it.

Clean up

Delete when finished experimenting.

kubectl delete pod web

Comments

One comment per signed-in account. Comments are saved with this page’s URL.