What is minikube?
Minikube is a tool which quickly sets up a local Kubernetes cluster on macOS, Linux, and Windows. It can deploy as a VM, a container, or on bare metal.
Minikube is a pared-down version of Kubernetes that gives you all the benefits of Kubernetes with a lot less effort. This makes it an interesting option for users who are new to containers, and also for projects in the world of edge computing and the Internet of Things.
Features of minikube
Minikube supports the latest Kubernetes release (+6 previous minor versions)
Cross-platform (Linux, macOS, Windows)
Deploy as a VM, a container, or on bare-metal
Multiple container runtimes (CRI-O, containerd, docker)
Direct API endpoint for blazing-fast image load and build
Advanced features such as LoadBalancer, filesystem mounts, FeatureGates, and network policy
Add-ons for easily installed Kubernetes applications
Supports common CI environments
Understanding the concept of Pod
Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. A Pod is a group of one or more containers, with shared storage and network resources, and a specification for how to run the containers. A Pod's contents are always co-located and co-scheduled, and run in a shared context. A Pod models an application-specific "logical host": it contains one or more application containers which are relatively tightly coupled.
Task-01: Install Minikube on your local
For installation, you can visit here
After the installation is complete, go to your terminal and run minikube version
Task-02: Create your first pod on Kubernetes through minikube
Open your terminal and launch your Minikube cluster with this command : minikube start
The minikube start
command will start a local Kubernetes cluster using Minikube
To verify that your Minikube cluster is running : kubectl cluster-info
Let's create a YAML file which will be used to create our pod
To create a pod using this YAML file - kubectl apply -f <yaml_filename>
This command creates a pod named “nginx” and uses the official Nginx Docker image.
Verify that the Nginx pod is running by running the following commands:
kubectl get pods
kubectl describe pod nginx