Minikube is a tool that makes it easy to run a single-node Kubernetes cluster locally on your computer. It allows developers to test and experiment with Kubernetes without needing a remote cluster. Minikube runs a virtual machine on your local machine and then deploys a cluster inside that virtual machine.
It uses virtualization software such as Docker, QEMU, KVM2, VirtualBox, VMware, Podman, or Hyper-V to run a single-node Kubernetes cluster inside a virtual machine. This makes it easy to set up and run a cluster on your local machine for development and testing purposes. Minikube also provides a command line interface that allows you to interact with the cluster, such as deploying and scaling applications and managing the cluster’s resources.
In this article, we will use Docker as the driver type for Minikube.
First, let’s set up Docker.
Step 1. Adding the Docker repository
Step 2. In this step, we install Docker and its dependencies.
sudo dnf -y install docker-ce docker-ce-cli containerd.ioCode language: CSS (css)
Step 4. Starting Docker
sudo systemctl start docker
Step 5. Let’s test if Docker works.
sudo docker run hello-world
Step 6. Adding the current user to the docker user group.
sudo usermod -aG docker $USER && newgrp dockerCode language: PHP (php)
Step 7. Download Minikube package.
Step 8. Install Minikube
sudo dnf install ./minikube-latest.x86_64.rpm
Step 9. Install and setup Kubectl
Step 10. Start Minikube with Docker as the driver type.
minikube start --driver=docker
You can also set the driver type to Docker
Additional steps (optional)
You can check the status of the Minikube environment by running
The output should be similar to
minikube type: Control Plane host: Running kubelet: Running apiserver: Running kubeconfig: Configured
Now go ship containers.
I compiled a list of software and services that I use to improve my workflow, here is the link to the list.