Skip to content

Techeons

Imagine | Explore | Innovate

Menu
  • Home
Menu

How to setup Minikube on Ubuntu

Posted on August 31, 2024

Minikube is a free and open-source tool that allows you to run a single-node Kubernetes cluster on your local machine. It provides a simple way to try out Kubernetes, develop and test applications, and learn about container orchestration.

Minikube creates a virtual machine (VM) on your computer and deploys a Kubernetes cluster within it. This cluster includes all the necessary components, such as the API server, controller manager, scheduler, and worker node.

With Minikube, you can:

  • Run Kubernetes on your laptop or desktop
  • Develop and test Kubernetes applications locally
  • Try out Kubernetes features and plugins
  • Learn about Kubernetes architecture and components

Minikube supports various operating systems, including Windows, macOS, and Linux. It’s a great tool for anyone interested in Kubernetes, containerization, and cloud-native technologies.

Here are some key features of Minikube:

  • Easy installation: Minikube can be installed using a simple command
  • Quick startup: Minikube starts a Kubernetes cluster in minutes
  • Resource-efficient: Minikube runs on a single node, making it resource-efficient
  • Kubernetes compatibility: Minikube supports most Kubernetes features and plugins

Install Minikube

Note: Minikube requires atleast 2 cores. If you are using a VM, make sure it is allocated atleast 2 cores.

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --driver=docker

Minikube can download the appropriate version of kubectl and you should be able to use it like this:

minikube kubectl -- get po -A

You can also make your life easier by adding the following to your shell config: (for more details see: kubectl)

alias kubectl="minikube kubectl --"

Enable the Kubernetes Dashboard

minikube addons enable dashboard
minikube addons enable metrics-server
minikube ip
kubectl proxy --address='0.0.0.0' --disable-filter=true

Dashboard will be available at the following URL:

http://<minikube-vm-ip>:8001/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

Useful links

  • https://minikube.sigs.k8s.io/docs/start/
  • https://minikube.sigs.k8s.io/docs/drivers/docker/
  • https://minikube.sigs.k8s.io/docs/handbook/dashboard/

Share on Social Media
x facebook pinterest linkedin tumblr reddit emailwhatsapptelegrammastodon

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • Nginx: How to increase timeout for Nginx
  • Cheat Sheet: Essential Git Commands
  • Setting a default shell in Linux
  • Setting up Composer on Linux
  • Switch easily between Python versions on a Mac using pyenv

Tags

ai alerting aws b2 backblaze certificate cheatsheet cloud commands data-science datalake devops dns docker dremio git gitlab infra jenkins kubernetes linux metabase minikube minio monitoring mount mysql nginx nodejs notebooks openssh php python scala secrets spark ssh ssl ubuntu ufw usb web dev tools windows xampp zeppelin

©2026 Techeons | Design: Newspaperly WordPress Theme