This blog represents steps/instructions on how to setup Kubernetes on Ubuntu (Linux) using Minikube. The instructions have been used to setup Kubernetes on Ubuntu 16.04. Following are key steps which need to be taken in order to setup and get started with Kubernetes:
First and foremost, ensure that Virtualization Technology (VT) is enabled in BIOS setup. In order to do that, do following:
Figure 1. Accessing BIOS Setup
Figure 2. Enable Virtualization Technology
Follow the steps given below to setup Virtual Box:
Figure 3. VirtualBox Started
Follow the steps given below to setup VBoxManage:
VBoxManage is the command-line interface to VirtualBox.
wget http://download.virtualbox.org/virtualbox/5.1.0/Oracle_VM_VirtualBox_Extension_Pack-5.1.0.vbox-extpack
sudo VBoxManage extpack install ./Oracle_VM_VirtualBox_Extension_Pack-5.1.0.vbox-extpack
VBoxManage list extpacks
Following is the screenshot representing the output of execution of above command:
Figure 4. VBoxManage List Extpacks
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
The above details can also be found on the page, Install Kubectl binary via curl
In order to confirm if everything is alright, execute the following command:
kubectl version
Above would show the result as shown in the screenshot given below:
Figure 5. kubectl version
Install Minikube using the following command:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.22.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Execute the following command which would print the version of Minikube such as v0.22.2
minikube version
Execute the following command to launch Kubernetes cluster
minikube start
Above would result in starting of Kubernetes cluster. Following screenshot represents the same:
Figure 6. Starting Kubernetes Cluster
Once started, access the Kubernetes Dashboard by executing following command:
minikube dashboard
It would open up a browser window with Dashboard as represented in the following screenshot.
You can stop the cluster using the following command:
minikube stop
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…
Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google…
Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large…
The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…
Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…