Installing Minikube

7th Mar 2025

You will learn:

  • Create a simple Kubernetes cluster from a single node using a Minikube virtual machine
  • Use this procedure if you do not have Docker Desktop installed

Minikube installer

Install the minikube system according to the instructions. The requirements are similar to installing Docker Toolbox - running hypervisor (virtualbox or Hyper-V), 4GB RAM.

For Windows, just download and run installer. From the Git Bash command line, execute the following commands to create a virtual machine with Kubernetes installed:

minicube start

Setting up a minicube on Windows, if you're using Hyper-V, is a little trickier. It is best to use this guide. You can skip the steps with chocolate and follow the line with

minicube stop

Your internet connection may not work very well. "Network Bridge" will appear between the network adapters. When you click this, you will find "Internet Protocol Version 4 (TCP / IPv4)" in the properties (in the bottom window). Click this and the internet should work properly.

The minikube machine is similar to thedocker-machine machine. Includes Docker installation for running applications in containers. In addition, it contains everything needed to run a single-node cluster of the Kubernetes type.

After a while, a virtual machine minikube will be created which will execute your commands.

You can verify the status of the minikube with the command:

minikube status

If everything is OK, a message will be displayed:

host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

You can easily check the status of your functioning Kubernetes private cluster with the command:

minikube dashboard

The web application opens. See what you have available.

After finishing the work we can shut down the experimental cluster (because it takes quite a lot of system resources):

minicube stop

We can find out about possible startup errors using:

minikube logs

Kubectl

The minikube command is mainly used to install the test cluster and to influence its run. Routine work with the cluster - adding and removing loads we execute using the client kubectl.

It works similarly to the docker client - commands entered from the command line are transmitted to the cluster using the TCP protocol and then executed there.

In this command we will use the client kubectl which is a part ofminikube. The advantage is that we do not have to perform additional configuration.

minikube kubectl

Installing kubectl

The built-in client is only suitable for the beginning. For normal work it is good to install and configure the official kubectl client (included with Docker Desktop for Windows).

If you don't already have it, follow these steps to install Git Bash on Windows:

# Create a directory with write access.
# Tilde (~) is synonymous with home directory
mkdir ~/apps/kubectl
cd ~ /apps/kubectl
# Download the application
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/windows/amd64/kubectl.exe
# Try it out:
./kubectl
# Add a directory to the PATH variable
echo "export PATH=\$PATH:~/apps/kubectl" >> ~/.bash_profile
# You will have the kubectl command when you restart

Installing on Linux is trivial - just use your package manager. See the official instructions.

Connection with Kubernetes

Working with kubectl is somewhat similar to working with thedocker client. The similarities are summarized in this guide.

See also official guide for the first steps with a minicube.

First, test that the client is working properly and has a connection to the cluster. Which cluster am I communicating with?

kubectl cluster-info

The minikube start command adds a configuration record to the~ / .kube / config file. The kubectl command accordingly retrieves information about the access data and the address of the cluster with which it communicates.

Find out the address of the minicube:

minikube ip

Try it out with your web browser.

Previous Post Next Post

Installing Minikube