fbpx

What are PODS in Kubernetes

Here, we will take a look at PODS.

  • POD introduction
  • How to deploy a pod?

Kubernetes doesn’t deploy containers directly on the worker node.

  • The containers are encapsulated into a Kubernetes object called POD.
  • A POD is a single instance of an application.
  • A POD is the smallest object that you can create in Kubernetes

Here is a single-node Kubernetes cluster with a single instance of your application running in a single docker container encapsulated in the pod.

A Pod usually has a one-to-one relationship with containers running your application.

  • To scale up, you create a pod, and to scale down, you delete a pod.
  • You do not add additional containers to an existing POD to scale your application.

Multi-Container PODs

  • A single pod can have multiple containers except for the fact that they are usually not multiple containers of the same kind.
  • Sometimes you might have a scenario where helper containers that might be doing some kind of supporting tasks for a web application such as processing a user-entered data, processing a file uploaded by the user, etc. and you want these helper containers to live alongside your application container. In that case, you can have both of these containers part of the same POD.

How to deploy pods?

Let’s now take a look to create an Nginx pod using kubectl.

To deploy a docker container by creating a POD.

 $ kubectl run nginx --image nginx

To get the list of pods

$ kubectl get pods

K8s Reference Docs:

 

Access certified Kubernetes administrator course with practice tests

Related Articles

Docker Certified Associate Exam Series (Part-3): Kubernetes

Introduction to Kubernetes Kubernetes is the most popular container orchestration tool that integrates seamlessly with Docker. The DCA certification test emphasizes specifically on services, architecture, and commands used in Kubernetes, so it is crucial to develop a firm grasp of the framework. The Kubernetes section of the DCA exam preparation tutorials combines the Kubernetes for…

Responses

Your email address will not be published. Required fields are marked *

Secured By miniOrange