In this guide, we will explore the process of installing and uninstalling Minikube on Ubuntu 22.04.2 LTS.
Install Minikube
Minikube Installation
I’ve used the official Minikube start documentation. This was the output:
# Installation for Ubuntu 22.04.2 LTS, x86-64
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
# Start your cluster
minikube start
You’ll receive an error because you’ll need to specify a driver. The recommended driver is Docker. The next section will go over installing Docker.
Install Docker
Let’s use Docker as our driver for Minikube. I used the official Docker documentation to get Docker installed.
After installing Docker, do these post-setup configuration.
Deploy Kubernetes
Finally, run the following based on the Minikube documentation:
# Set Docker as default.
minikube config set driver docker
# Start Minikube with Docker as the driver.
minikube start
# Alias kubectl
alias kubectl="minikube kubectl --"
alias k="minikube kubectl --"
Uninstall Minikube
Use the following documentation to delete Minikube.
minikube delete --all --purge
Resources
The following resources were used to develop this guide.