DEV Community

realninety5
realninety5

Posted on

How to install Minikube on Ubuntu

If you tried surfing the internet with the hope of finding how you can install minikube so you could run kubernetes locally, you might not find a complete approach on how to do that. This post guides you through what you need installed before you finally install minikube.

  1. You will need to update and grade your system.
sudo apt-get update && sudo apt-get upgrade -y
Enter fullscreen mode Exit fullscreen mode

The -y allows the update without your prompt.

  1. Install socat, conntrack and apt-transport-https for networking between clusters
sudo apt-get install socat apt-transport-https conntrack
Enter fullscreen mode Exit fullscreen mode
  1. Install curl if you don't have it
sudo apt-get install curl
Enter fullscreen mode Exit fullscreen mode
  1. Minikube needs a driver to run your cluster, it might be docker engine (container-based) or a virtualbox (Vm-based). This guide tells you how to install virtual box. You would still need to install docker engine as the runtime for your clusters anyway, so you might just want to install only docker engine using this link.
sudo apt install virtualbox virtualbox-ext-pack
Enter fullscreen mode Exit fullscreen mode

Follow through and complete the installation of virtual box.

  1. Finally, install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
Enter fullscreen mode Exit fullscreen mode
  1. Test your installation.
minikube version
Enter fullscreen mode Exit fullscreen mode

Top comments (0)