Skip to content

Instantly share code, notes, and snippets.

@karthiks
Last active January 28, 2019 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karthiks/2c405ac39be06ca059ae5db24ab71b7c to your computer and use it in GitHub Desktop.
Save karthiks/2c405ac39be06ca059ae5db24ab71b7c to your computer and use it in GitHub Desktop.
Steps to install minikube on ubuntu 18.10
# Note of thanks: This code snippet is created using https://carbon.now.sh. Check it out!
# Update the system
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get upgrade
# Install KVM or VirtualBox or both
# I prefer KVM
# Installing virtualbox
sudo apt install virtualbox virtualbox-ext-pack
# Installing KVM
sudo apt-get -y install qemu-kvm libvirt-bin virt-top libguestfs-tools virtinst bridge-utils
# Load and enable the modulevhost-net
sudo modprobe vhost_net
sudo lsmod | grep vhost
echo "vhost_net" | sudo tee -a /etc/modules
# You may also need to create bridge network with your kvm's vm.
# For this see https://computingforgeeks.com/how-to-create-and-configure-bridge-networking-for-kvm-in-linux/
# The easiest steps include:
# 1. Open Virtual Machine Manager
# 2. Go to Edit > Connection Details > Network Interfaces
# 3. Configure a new network interface by clicking the + at the bottom of the window.
# 4. Select "interface type" as “bridge” from the dropdown and click "Forward" button.
# 5. In the next window, set the following fields like below:
# 5.1 Name : br10
# 5.2 Start mode: hotplug
# 5.3 Check "Activate now"
# 5.4 From insert list desc, select "eno1 ethernet type". and click "Finish".
# Installing Minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
# Easiest way to add Minikube to your executable path
sudo cp minikube /usr/local/bin && rm minikube
# Note: Minikube also supports a --vm-driver=none option that runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment but not a hypervisor.
# Test your minikube installation
minikube version
minikube start --vm-driver kvm2 # Takes awhile to start the cluster
minikube dashboard --url # Takes awhile to start the dashboard and publish you the url for interacting
minikube stop # Shutsdown the cluster
minikube delete # If only, you want to delete the cluster and start with a different vm-driver, say virtualbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment