Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save denyspozniak/1ab2a20f4a9a6a657d4e105da1760247 to your computer and use it in GitHub Desktop.
Save denyspozniak/1ab2a20f4a9a6a657d4e105da1760247 to your computer and use it in GitHub Desktop.
Minikube and kubectl installation instructions for Ubuntu 18.04 LTS

First let's setup minikube :

#1 - Update your system with the latest version: apt-get update -y && apt-get upgrade -y. Use sudo if needed.

#2 - Check if virtualization is supported on Linux: grep -E --color ‘vmx|svm’ /proc/cpuinfo

#3 - Install required packages (optional): apt-get install curl wget apt-transport-https -y

#4 - Install VirtualBox Hypervisor: apt-get install virtualbox virtualbox-ext-pack

#5 - Download Minikube : wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

#6 - Copy the downloaded file to /usr/local/bin: cp minikube-linux-amd64 /usr/local/bin/minikube

#7 - Give execution permission: sudo chmod 755 /usr/local/bin/minikube

#8 - Verify Installation : minikube version


Once minikube is setup, we can start with kubectl installation

#1 - Download binary file : curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl

#2 - Make the binary executale : chmod +x ./kubectl

#3 - Move binary to your path : sudo mv ./kubectl /usr/local/bin/kubectl

#4 - Check the installation : kubectl version -o json

That's it. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment