Minikube Installation

Minikube Installation on Linux system

Let’s find out how to put in the most recent Minikube release on Ubuntu linux system 20.04 LTS with VirtualBox v6.1 specifically.

NOTE: For different Linux system OS distributions or releases, VirtualBox and Minikube versions, the installation steps could vary! Check the Minikube installation!

Verify the virtualization support on your linux system OS during a terminal (a non-empty output indicates supported virtualization):

$ grep -E –color ‘vmx|svm’ /proc/cpuinfo

Steps to Install VirtualBox Hypervisor

Install the VirtualBox hypervisor. during a terminal run the subsequent commands to feature the suggested supply repository for native OS, transfer and register the general public key, update and install:

$ sudo bash -c ‘echo “deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib” >> /etc/apt/sources.list’

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add –

$ sudo apt update

$ sudo apt install -y virtualbox-6.1

Minikube Installation Steps

Install Minikube. we will transfer and install during a terminal the most recent release or a selected release from the Minikube release page:

$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb

$ sudo dpkg -i minikube_latest_amd64.deb

NOTE: exchange /latest/ with a specific version, like /v1.24.0/ can transfer that fixed Minikube version.

Start Minikube. during a terminal we will begin Minikube with the minikube begin command, that bootstraps a single-node cluster with the most recent stable Kubernetes version release. For a selected Kubernetes version the –kubernetes-version possibility will be used intrinsically minikube begin –kubernetes-version v1.22.0 (where latest is default and acceptable version price, and stable is additionally acceptable). additional advanced begin choices are going to be explored later during this chapter:

Minikube Commands

$ minikube start

😄  minikube v1.25.2 on Ubuntu 20.04

✨  Automatically selected the virtualbox driver

💿  Downloading VM boot image …

    > minikube-v1.25.2.iso.sha256: 65 B / 65 B [————-] 100.00% ? p/s 0s

    > minikube-v1.25.2.iso: 237.06 MiB / 237.06 MiB [] 100.00% 9.11 MiB p/s 26s

👍  Starting control plane node minikube in cluster minikube

💾  Downloading Kubernetes v1.23.3 preload …

    > preloaded-images-k8s-v17-v1…: 505.68 MiB / 505.68 MiB  100.00% 8.52 MiB

🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) …

🐳  Preparing Kubernetes v1.23.3 on Docker 20.10.12 …

    ▪ kubelet.housekeeping-interval=5m

    ▪ Generating certificates and keys …

    ▪ Booting up control plane …

    ▪ Configuring RBAC rules …

🔎  Verifying Kubernetes components…

    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5

🌟  Enabled addons: default-storageclass, storage-provisioner

💡  kubectl not found. If you need it, try: ‘minikube kubectl — get pods -A’

🏄  Done! kubectl is now configured to use “minikube” cluster and “default” namespace by default

NOTE: An error message that reads “Unable to pick a default driver…” means that Minikube was not able to locate any one of the supported hypervisors or runtimes. The recommendation is to install or re-install a desired isolation tool, and ensuring its executable is found in the default PATH of your OS distribution.

Check the status. With the minikube status command, we display the status of the Minikube cluster:

$ minikube status

minikube

type: Control Plane

host: Running

kubelet: Running

apiserver: Running

kubeconfig: Configured

Stop Minikube. With the minikube stop command, we can stop Minikube:

$ minikube stop

✋  Stopping node “minikube”  …

🛑  1 node stopped.