Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.33 KB

10-Pods.md

File metadata and controls

49 lines (31 loc) · 1.33 KB

Pods

In this section, we will take a look at PODS.

  • POD introduction
  • How to deploy pod?

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

pod

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

pod1

Pod will have a one-to-one relationship with containers running your application.

pod2

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.

    pod3

Docker Example (Docker Link)

pod4

How to deploy pods?

Lets now take a look to create a 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
    

kubectl

K8s Reference Docs: