Kubernetes Handbook
  • Introduction
  • Prerequisites
    • What is Containerization
    • What is Docker
    • Difference between Docker and VM
  • Features of Kubernetes
    • What is Kubernetes
    • Features of Kubernetes - 1
    • Features of Kubernetes - 2
    • Which Tool to Use for Orchestration
  • Architecture
    • Master Node
    • etcd and kubectl
    • Worker Nodes
  • Pods and Nodes
    • Nodes
    • Pods
  • Controllers
    • Benefits of Controllers
    • Kinds of Controllers
  • Minikube
    • What is Minikube
  • Installation and Running (Mac OS)
    • Installation
    • Running Hello World Application
  • Labels Namespaces and Selectors
    • Labels
    • Namespaces
    • Selectors
  • Health Checks Rollouts and Rollbacks
    • Health Checks
    • Rollouts and Rollbacks
  • Config Maps and Secrets
    • Config Maps
    • Secrets
  • Running Jobs
    • How to Run Jobs
  • Dashboard and Debugging
    • Kubernetes Dashboard
    • Debugging
Powered by GitBook
On this page
  • Pod is the smallest unit of deployment to interact with in a K8s cluster.
  • A pod contains:
  • Features of a pod
  • Pod States

Was this helpful?

  1. Pods and Nodes

Pods

Pod is the smallest unit of deployment to interact with in a K8s cluster.

  • Can be created/deleted/deployed

  • Represents one running process on your cluster

A pod contains:

  • Docker application container

  • Storage resources

  • Unique IP

  • Options to govern how containers should run

Features of a pod

  • Multiple Docker containers can run in a pod

  • Pod represents one single unit, a single instance of the application in K8s

  • It is tightly coupled and shares resources.

  • Ephemeral, disposable

  • Never self starts (by scheduler) or self heals

  • Higher level constructs to add pod stability called controllers

Pod States

  1. Pending - accepted by K8s system, but container creation is pending

  2. Running - scheduled on a node and all of its containers are created, with at least one in running state

  3. Succeeded - all containers in the pod have exited with exit status 0 (successful execution, will not be restarted)

  4. Failed - all containers in the pod have exited with exit status 0, but one failed with non-zero status

  5. CrashLoopBackOff - container fails to start for some reason and K8s tries over n over again to restart

PreviousNodesNextBenefits of Controllers

Last updated 3 years ago

Was this helpful?