How to Start Minikube

Reading Time: 2 minutes

What is minikube?

Minikube is a tool that lets you run Kubernetes locally. It allows you to set up and run a single-node Kubernetes cluster on your personal computer and try out Kubernetes or for daily development work.

To deploy applications, inspect and manage cluster resources, and view logs on minikube here you can use Kubectl which is a command-line tool that allows you to run commands against the Kubernetes cluster. 

Minikube supports Kubernetes features such as:

  • DNS
  • NodePorts
  • ConfigMap and secrets
  • Dashboard
  • Container Runtime: Docker, and containerd
  • Enabling CNI (Container Network Interface)
  • Ingress
  • PersistentVolumes of type hostPath

How to Install Minikube

The following steps show, how to install Minikube on a Linux machine

There are three ways you can install, via a package, direct download, or with Homebrew.

If you want to use a package, you can use your built-in package tool to find the right option.


The following steps for direct download, use the following command:

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

After that command you have to run :

sudo install minikube-linux-amd64 /usr/local/bin/minikube

Confirm Installation

After installation, if you want to confirm then follow this command :

minikube version

Output :

Installing Kubectl

  1. Firstly, Download the latest release with the command:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

2. secondly, Validate the binary (optional)

Download the kubectl checksum file:

curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"

3. Validate the kubectl binary against the checksum file:

echo "$(<kubectl.sha256)  kubectl" | sha256sum --check

finally, If valid, the output is:

kubectl: OK

Minikube dashboard

In addition to command-line, GUI is also available that is minikube Dashboard.

The dashboard is Kubernetes’ web-based UI that you can use to manage clusters and deploy applications.

Minikube start

To get into minikube simply use minikube start command

Conclusion

In conclusion, I hope this blog will provide you a better understanding about the minikube and the installing of minikube and kubectl.

Written by 

Hi community, I am sachin from Ghaziabad a tech enthusiastic trying to make something useful for you.

Leave a Reply