This article represents a quick, crisp and to-the-point instructions on how to setup Kubernetes on Ubuntu VM. The steps below would help you get started with Kubernetes on your laptop with the help of Minikube. Minikube is a tool which runs a single-node kubernetes cluster inside a VM (virtualbox in this article) on your laptop. In this article, we will look at the steps for installing Kubernetes within an Ubuntu VM. The steps remain almost same for Ubuntu OS with the difference of how you enable the virtualization at BIOS level.
First and foremost, a hypervisor needs to be installed. We will install Virtualbox. The detailed instructions can be found on VirtualBox installation page. For Linux distributions, the instructions can be found on this page, VirtualBox for Linux.
sudo vi /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian xenial contrib
In place of “xenial” (Ubuntu 16.04), use following for other versions of Linux/Ubuntu:
sudo apt-get update sudo apt-get install virtualbox-5.2
Click on processors and check the box such Virtualize Intel VT-x… as shown in the diagram below.
# The command below installs Kubectl version 1.9.0 curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl # For stable version, use following command: curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.24.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ minikube version
minikube start
The following diagram represents the same:
minikube dashboard
The following page shows up in the browser:
minikube stop
In this fast-changing world, the ability to learn effectively is more valuable than ever. Whether…
Last updated: 13th May, 2024 Whether you are a researcher, data analyst, or data scientist,…
Last updated: 12th May, 2024 Data lakehouses are a relatively new concept in the data…
Last updated: 12th May 2024 In this blog, we get an overview of the machine…
Last updated: 12th May, 2024 In the world of generative AI models, autoencoders (AE) and…
Last updated: 7th May, 2024 Linear regression is a popular statistical method used to model…