Kubernetes Pods explained with examples

Nidhi
7 min readDec 14, 2020

Checkout my website for more blogs.

In this blog, we will explore the concepts of pods, how to create them using the yaml configuration, check pod logs etc.

Prerequisite:

  1. Functional Kubernetes Cluster configured
  2. Kubernetes’ command-line tool, kubectl, which is the command-line interface for running commands against Kubernetes clusters.
  3. Clone this git repo for all the yaml files which we will be using in this blog

Agenda:

  1. Create a simple pod
  2. Create a pod in different namespaces
  3. Creating a Pod in a Different Namespace using yaml configuration
  4. Create a Pod running a container
  5. Creating a Pod Running a Container That Exposes a Port
  6. Creating a Pod Running a Container with Resource Requirements
  7. Creating a Pod with Resource Requests That Can’t Be Met by Any of the Nodes
  8. Creating a Pod with Multiple Containers
  9. Pod Lifecycle

What is a POD

  • A pod is the basic building block of Kubernetes

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet