How to install Minikube on Ubuntu?

Member

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

How to install Minikube on Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by bobbie.kris , a year 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.

by buster.gaylord , 7 months ago

@lia 

  • Install Docker:
1
2
3
4
5
6
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io


  • Install kubectl:
1
2
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl


  • Install Minikube:
1
2
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube


  • Start Minikube:
1
minikube start


  • Verify the installation:
1
minikube status


Additionally, you can run minikube dashboard to access the Kubernetes dashboard. You might also need to install kubectl by running sudo apt install kubectl before proceeding with the steps above.


Ensure your system meets the minimum requirements for running Minikube, such as having a compatible hypervisor installed if you want to use a specific one rather than the default VirtualBox.