Skip to main content
In this tutorial, you’ll learn how to deploy a pod in your Minikube cluster. A pod is the smallest and simplest deployable unit in Kubernetes, designed to hold one or more application containers. We’ll use the kubectl command-line tool to interact with our cluster.
You can specify an image tag or use an alternative container registry if your desired image is hosted elsewhere.

Pod Operations

Creating a Pod

To create a pod named “nginx” using the Docker image “nginx” (pulled from Docker Hub), run the following command:
Once this command executes, Kubernetes creates the pod. You can verify its creation and status by checking the list of pods:
The output confirms that the pod is running. The “READY” column indicates how many containers are in a ready state, “RESTARTS” shows the number of times the container has restarted, and “AGE” reflects how long the pod has been active.

Inspecting Pod Details

For more in-depth information about the pod—including its labels, node assignment, internal IP address, and container specifics—use the kubectl describe command:
This command output provides essential metadata and status details such as the pod’s start time, the node it is running on, and its internal IP address (172.17.0.3). If multiple containers were running within the pod, each would be listed under the “Containers” section. Additionally, the bottom section of the output displays event information that tracks the lifecycle of the pod—from scheduling on the Minikube node to pulling the image and finally creating and launching the container:

Viewing Pod Information in Wide Format

For a summary that also includes node and internal IP details, use the following command:
The output will resemble:
Here, each pod is assigned its own internal IP address (in this case, 172.17.0.3), which enables network communications within the cluster.
This demonstration has shown how to deploy a pod in a Minikube environment using the kubectl command line. In upcoming lessons, we will explore how to define pods using YAML configuration files for more complex deployment scenarios. For further reading and detailed Kubernetes concepts, visit the Kubernetes Documentation.

Watch Video