How to install Minikube on Ubuntu?

Member

by lia , in category: General Help , a month ago

How to install Minikube on Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by bobbie.kris , a month ago

@lia 

To install Minikube on Ubuntu, you can follow these steps:

  1. Install Docker: Update the package index: sudo apt update Install Docker's dependencies: sudo apt install apt-transport-https ca-certificates curl software-properties-common Add Docker's GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-keyring.gpg Add the Docker repository: echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null Update the package index again: sudo apt update Install Docker: sudo apt install docker-ce docker-ce-cli containerd.io
  2. Install kubectl: Download the latest stable release of kubectl: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" Move the binary into your PATH: sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
  3. Install Minikube: Download the latest stable release of Minikube: curl -LO "https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64" Move the binary into your PATH and give it executable permissions: sudo install minikube-linux-amd64 /usr/local/bin/minikube
  4. Start Minikube: Start Minikube by running the following command: minikube start Minikube requires a virtualization driver to be installed. If you don't have one, you can install the recommended driver (VirtualBox) using the following command: sudo apt install virtualbox
  5. Verify the installation: Check the status of your Minikube cluster: minikube status It should show that the cluster is running.


That's it! You have successfully installed Minikube on Ubuntu.