install minikube on ubuntu tutorial

Install minikube on ubuntu is very easy. We will walk through the necessary steps to install minikube on ubuntu from A to Z.

Install minikube on ubuntu step 1 : 

we should update the system packages to the latest release. 
To do that we run these two commands:
  • sudo apt-get update
  • sudo apt-get install apt-transport-https
install minikube on ubuntu step1

Install minikube on ubuntu step 2 :

Now, we need to install virtualbox hypervisor. we will get a prompt telling us to accept the virtualbox license.

sudo apt install virtualbox virtualbox-ext-pack

Install minikube on ubuntu step 3:

Now, we download the minikube binary file and we copy it to to the /usr/local/bin directory.

In order to do that, we run the following commands in order:

  • wget
  • chmod +x minikube-linux-amd64
  • sudo mv minikube-linux-amd64 /usr/local/bin/minikube
install kubernetes ubuntu step3

We add executable right to the downloaded file:

kubernetes install add executable rights to minikube

Then we move the executable file to /usr/local/bin/ in order to be in the PATH.

install kubernetes ubuntu copy minikube to path

Next, we check if minikube was installed with success :

install kubernetes ubuntu minikube version

Install minikube on ubuntu : Step 4

We need to install the Kubernetes command line tool (kubectl) in order to manage our cluster.

Here, the cluster is composed by a single node.

In order to do that, we run this command :

curl -LO`curl -s`/bin/linux/amd64/kubectl


Next, we add the exĂ©cution permission to kubectl file  using this command: chmod +x ./kubectl

Then, we move the kubectl file to the directory /usr/local/bin to be able to call it from any directory in the system.

sudo mv ./kubectl /usr/local/bin/kubectl
install minikube ubuntu add execution rights kubectl

We check whether the installation of kubectl succeeded or not using the following command :

kubectl version

install minikube ubuntu kubectl version

Install minikube on ubuntu : step 5

Now we will start minikube using this command :

minikube start

This will download the minikube iso file and launch the minikube virtual machine.

To stop a running kubernetes cluster, we run this command:

minikube stop

To delete a running kubernetes cluster, we run this command:

minikube delete

Install minikube on ubuntu : step 6

minikube has  a web dashboard that allows to manage the minikube cluster from a web interface.

To get the url of this dashboard, we run this command :

minikube dashboard --url

 This install kubernetes on ubuntu tutorial for beginners arrives at its end.

If you want to deep dive into kubernetes, you can check our kubernate cluster architecture tutorialkubernetes pod tutorial or our kubernetes replicaset tutorial.

To check our other tutorials, you can like our how to program facebook page.

Post a Comment

Previous Post Next Post