What is a Kubernetes pod?

In short
A Kubernetes pod is the smallest unit Kubernetes can deploy and manage. It is a group of one or more containers that share network and storage resources and run together on the same node. Most pods hold a single container.
What a pod is
Kubernetes does not run containers one by one as its basic building block. It wraps them in a pod. A pod is a small group of one or more containers, plus a specification that describes how those containers should run. The name comes from the idea of a pea pod, where several peas sit together in one shell.
The containers inside a pod are always placed on the same machine, and they are started and stopped together. They share a network address and can share storage volumes. Because of this, a pod acts like a logical host for an application. Containers in the same pod can reach each other over localhost and read the same files.
A pod is not a process. It is better to think of it as an environment that holds one or more containers. A pod stays around until it is deleted, even if the containers inside it restart.
How it works
A pod runs on a node, which is a worker machine in your cluster. When a pod is created, the Kubernetes scheduler picks a node for it. The pod then stays on that node until it finishes, is deleted, is evicted because the node lacks resources, or the node fails.
Pods can also hold init containers. These run during pod startup and finish before the main containers begin. You can also add ephemeral containers to a running pod, which is useful for debugging.
The containers in a pod share isolation features from Linux, such as namespaces and cgroups. These are the same building blocks that isolate a single container, so a pod is similar to a set of containers that share namespaces and volumes.
Single container or several
Most pods run one container. In this case you can think of the pod as a wrapper around that container. Kubernetes manages the pod rather than the container directly.
Some pods run several containers that must work closely together and share resources. This is a more advanced pattern. Use it only when the containers are tightly coupled. If you only need more copies of an app for capacity or resilience, you should run more pods instead of adding containers to one pod.
A simple example
Here is a minimal pod manifest that runs one nginx container:
apiVersion: v1 kind: Pod metadata: name: nginx spec: containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
You would apply this file with kubectl apply. In practice, though, you usually do not create pods like this by hand. You describe them with a workload resource such as a Deployment, which creates and replaces pods for you.
Why you rarely create pods directly
Pods are designed to be disposable. If a pod is lost, nothing brings it back on its own when it is created directly. A controller fixes this. For example, if a node fails, a controller notices that its pods have stopped and creates replacements on healthy nodes. Deployments, StatefulSets, DaemonSets and Jobs all work this way.
Pod templates inside these resources describe what each new pod should look like. Changing a template does not change existing pods. The controller creates new pods from the updated template and replaces the old ones.
Common mistakes
A common mistake is putting unrelated applications in one pod. Containers in a pod share a network address and storage, so loosely related apps are better kept in separate pods.
Another mistake is confusing a container restart with a pod restart. A container inside a pod can restart while the pod itself keeps running on the same node.
Pod names must be valid DNS names. Following the stricter DNS label rules avoids surprises with the pod hostname.
Finally, remember that you need a container runtime installed on every node so that pods can actually run there.
FAQ
Is a pod the same as a container?
No. A pod is a wrapper that holds one or more containers and gives them shared networking and storage. Kubernetes schedules and manages pods, and most pods contain just one container.
Can containers in the same pod talk to each other?
Yes. Containers in one pod share a network address, so they can reach each other over localhost. They can also share storage volumes.
Why does Kubernetes delete a pod instead of fixing it?
Pods are designed to be disposable. When a pod fails or its node is lost, a controller creates a new pod to replace it rather than repairing the old one.
Should I run several containers in one pod?
Only when the containers are tightly coupled and need to share resources. If you just need more copies of an app, run more pods instead.
Sources
This page is based on the official documentation below. Read it for full detail.
Kubernetes pod — official documentation ↗Kubernetes pod in the news
Google Cloud Previews Network Services Monitoring for GKE Ambient Networking
Google Cloud has launched a preview of Network Services Monitoring, a tool that shows layer 4 network telemetry for GKE services alongside application context. It aims to let service owners and network teams troubleshoot from the same view.
Google Cloud Adds Kubernetes Events, Hardware Fault Links and Structured Logs to Ray on GKE
Google Cloud and KubeRay added Kubernetes platform events to the Ray Dashboard, forwarding of node GPU faults to affected clusters, on-demand JAX profiling on TPUs, and structured logs by default. The changes aim to show whether a Ray failure started in code, scheduling, or hardware.
Sandbox vendors pitch speed over security as agent breakouts raise questions
Stack Overflow's podcast examined how sandboxes isolate AI agents, following a Hugging Face breakout that the guests called both alarming and predictable. Vendors say most buyers pay for performance rather than security.


