>_ IzzyLab

Topic breakdown

A pod is the smallest unit Kubernetes runs. Inside a pod a container runs from an image — just like docker run starts a container. Each pod has its own name, its own IP address inside the cluster, and a status.

The quickest way to run a single pod is kubectl run. For example, a pod test from the busybox:1.36 image that just waits 10 minutes:

kubectl run test --image=busybox:1.36 -- sleep 600
kubectl get pods          # list pods and their statuses
kubectl delete pod test   # delete the pod

The main pod statuses:

  • Pending / ContainerCreating — the pod is created, the cluster is preparing the container;
  • Running — the container is running;
  • ErrImagePull / ImagePullBackOff — the image couldn't be pulled: for example, a typo in the name or tag;
  • CrashLoopBackOff — the container starts and crashes right away.

The READY column shows how many of the pod's containers are ready: 1/1 means all of them.

What's checked

  1. Pod hello is created
  2. The pod uses the nginx:1.27-alpine image
  3. The pod is running and ready

What it looks like