Pods: running containers in Kubernetes

  • Creating, running, and stopping pods
  • Organizing pods and other resources with labels
  • Performing an operation on all pods with a specific label
  • Using namespaces to split pods into non-overlapping groups
  • Scheduling pods onto specific types of worker nodes

We’ll start with pods, because they’re the central, most important, concept in Kubernetes. Everything else either manages, exposes, or is used by pods.

Introducing Pods

A pod is a co-located group of containers and represents the basic building block in Kubernetes. Instead of deploying containers individually, you always deploy and operate on a pod of containers. We’re not implying that a pod always includes more than one container-it’s common for pods to contain only a single container. The key thing about pods is that when a pod does contain multiple containers, all of them are always run on a single worker node—it never spans multiple worker nodes, as shown in figure.

results matching ""

    No results matching ""