Kubernetes Pods

  • Pod is the basic building block of kubernetes, the smallest deployable unit in the kubernetes that can be created and managed. 
  • Pod is the group of one or more containers(docker containers) with shared storage/network, and a specification for how to run the containers.

           kubectl run <pod-name> –image=<image name>

Task by trainer:-

  1. Create a nginx.yml file inside /root directory to deploy a pod. Pod name = nginx and image = nginx
  2. Create a redis.yml file inside /root directory to deploy a pod. Pod name = redis and image = redis