Skip to content
IT glossary
DevOps and cloudUpdated December 3, 2026

Kubernetes pod

Pod в Kubernetes

A Kubernetes pod is the smallest unit Kubernetes schedules. It contains one or more containers that run together on the same node and share a network.

Also known as: под

Why Kubernetes uses pods

Kubernetes places pods on nodes rather than scheduling each container separately. Most pods run a single application container. Put multiple containers in a pod when they need to run alongside one another and be replicated as a group. For example, an application might write logs to a shared volume while a helper container, called a sidecar, reads and ships them. Two services that need to scale independently should generally run in separate pods.

What containers share

The scheduler selects one node for the whole pod, and the kubelet on that node uses the container runtime to start its containers. Containers in the pod share its network namespace, including its IP addresses and ports. One container can call another over localhost, but two processes generally can't listen on the same TCP address and port. Container filesystems are separate by default; to share files, mount the same volume into both containers.

A container can restart without the pod being replaced. For instance, if an application exits, the kubelet may restart its container according to the restart policy. A pod itself is never moved from one node to another. If a controller replaces a pod after deletion or node failure, the replacement has a new UID and usually a different IP address. A Kubernetes Service gives clients a stable way to reach the application without tracking individual pod IPs.

Example: one web server

apiVersion: v1
kind: Pod
metadata:
  name: demo-web
spec:
  containers:
    - name: web
      image: nginx:alpine
      ports:
        - containerPort: 80

This manifest defines one pod running one Nginx container. containerPort documents the port Nginx listens on; it doesn't configure Nginx or make it reachable from outside the cluster. A standalone pod is useful for a quick test. For a production web app, you'd typically define a pod template in a Deployment and set a replica count. Setting three replicas gives you three separate pods, each with a copy of the template's containers.

How it comes up in interviews

A common question is: “What happens if you delete a pod managed by a Deployment?” The Deployment's ReplicaSet creates a replacement to restore the desired replica count. If you delete a standalone pod, there's no workload controller to replace it. Another common scenario: a pod is in the Running phase, but the Service isn't sending it traffic. Running doesn't mean Ready. Check whether the Service selector matches the pod's labels and whether the pod is ready, including the result of any configured readiness probe.