Spring Boot + Kubernetes Tutorial - Installing Kubectl, Minikube and Docker on Ubuntu
Video
This tutorial is explained in the below Youtube Video.Spring Boot + Kubernetes Tutorial
What is Kubernetes? Need for it? Install Ubuntu on Windows using WSL Installing Kubectl, Minikube and Docker on Ubuntu Create Docker Image Deploy to Minikube Pods Difference between ClusterIP, NodePort and LoadBalancer Service Service Hello World Example
Implementation
Install Minikube
Previously we installed Ubuntu on Windows using WSL. We will be using this Ubuntu terminal for creating the minikube kubernetes cluster.
We will first download the minikube installable as follows -
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

Then install the downloaded minikube installable -
chmod +x minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube which minikube

minikube start

We get an exception. Minikube needs a hypervisor such as VirtualBox or Docker to create this VM. To provide minikube the required hyperv driver we will be installing docker.
sudo snap install docker docker --version

If we now start minikube again it starts properly
minikube start --force

Install Kubectl

Download kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

Copy the kubectl exectuble to the bin folder.
chmod +x kubectl cp kubectl /usr/local/bin/ which kubectl
