Search Blog

Knowledge · Cloud
Cloud Infrastructure and Kubernetes — From Deployment to Operations · 1 / 6

From Docker Images to Pods: What Runs Where?

Images, registries, pods, worker nodes and namespaces have different roles

A concise breakdown of what Kubernetes runs, where it runs and how namespaces relate to worker nodes.

Docker and Kubernetes terms can sound interchangeable, but they refer to different parts of a deployment. An image packages what to run; a Pod is a Kubernetes unit that runs one or more containers from images.

What is built and what is executed?

TermRole
DockerfileInstructions for building an image
ImagePackaged application files and runtime configuration
RegistryWhere built images are stored and distributed
ContainerA running instance of an image
PodKubernetes workload unit containing one or more containers

Source code can live on GitHub while its built image lives in a container registry. A Kubernetes worker node retrieves the image and starts containers inside a Pod. Downloading source from Git and pulling an image from a registry are separate operations.

Two Pods do not guarantee two servers

With a Deployment replica count of two, Kubernetes tries to keep two Pods running. They may run on different worker nodes or, when scheduling allows, on the same node. Containers within one Pod normally share network space; separate Pods typically receive different Pod IP addresses.

A namespace is not an execution location

Worker nodes are the machines or VMs where Pods run. A namespace groups namespaced resources logically. Pods in the same production namespace can run on different nodes. Creating a namespace does not automatically create dedicated nodes or private IP ranges.

Source belongs in a repository, images in a registry, containers in Pods, Pods on nodes, and namespaced resources within logical scopes.

References

CloudIT infrastructureDockerContainerPodKubernetesNamespace
Connected projects
Cloud Infrastructure and Kubernetes — From Deployment to Operations · 1 / 6 · View series ↗