Day-02 Creating first pod in EKS

Day-02 Creating first pod in EKS

Describing the created pod and Get Shell to a running container pod.

(1) What is a pod?

Pods are the smallest deployable units of computing that you can create and manage in Kubernetes.

(2) Creating the first pod

There are two ways to create a pod

# (i) Using Imperative commands
   kubectl run first-pod --image nginx:1.14.2
#(ii) Using Declarative .yaml files
    kubectl apply -f simple-pod.yaml

  • Important Note: put simple-pod.yaml in the working directory.

(3) Describing created pod and SSH into it.

(i) Showing running Pods

kubectl get pods

(ii) Describing pod

kubectl describe pod nginx

(iii) Get a Shell to a Running Container.

kubectl exec --stdin --tty nginx -- /bin/bash

Made with ❤️ by Pratikkumar Panchal