Minikube is a free and open source apparatus that empowers you to set up single hub Kubernetes bunch inside your Linux framework. Minikube can be introduced on Linux, MacOS and Windows Operating framework. Minikube likewise underpins different Kubernetes highlights, for example, NodePorts, DNS, Container Network Interface, Ingress, ConfigMaps, Secrets and considerably more.
In this post, We will install and configure Minukube on ubuntu 16.04 LTS.
Step 1: Update and Upgrade the System
You need to 1st update and upgrade the current ubuntu repository by following the command.
$ sudo apt-get update && sudo apt-get upgrade -y
Step 2: Install Docker CE
You need to execute the given command one by one to install Docker CE on ubuntu.
$ sudo apt-get install curl -y
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update -y
$ apt-cache policy docker-ce
$ sudo apt-get install docker-ce -y
After that you can verify the docker service by using the below command.
$ sudo systemctl status docker
Step 3: Install Kubectl
You need to install kubectl command to control minikube cluster on ubuntu, Execute the given command one by one.
$ sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
$ sudo echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
$ sudo apt-get update
$ sudo apt-get install kubectl -y
Step 4: Install Minikube
You need to download the .deb file from the given url and after that you can install it, Also you can get another methods to install minikube.
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
$ sudo dpkg -i minikube_latest_amd64.deb
Step 5: Configuration of driver with docker
You need to configure driver with minikube using docker, Use the below command for the same.
$ sudo usermod -aG docker $USER && newgrp docker
$ minikube start --driver=docker
$ minikube config set driver docker
Here our installation process is completed, Lets start the minikube service.
$ minikube start
You should get sample out like this.
Conclusion
In this post, We have success install and configure minikube on ubuntu, Still have any issue, Please leave a comment.
How to Install Kubernetes with Minikube on Ubuntu 16.04/18.04/20.04 LTS
Very helpful.