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

Popular Posts
1Z0-830 Java SE 21 Developer Certification
1Z0-819 Java SE 11 Developer Certification
1Z0-829 Java SE 17 Developer Certification
AWS AI Practitioner Certification
AZ-204 Azure Developer Associate Certification
AZ-305 Azure Solutions Architect Expert Certification
AZ-400 Azure DevOps Engineer Expert Certification
DP-100 Azure Data Scientist Associate Certification
AZ-900 Azure Fundamentals Certification
PL-300 Power BI Data Analyst Certification
Spring Professional Certification
Azure AI Foundry Hello World
Azure AI Agent Hello World
Foundry vs Hub Projects
Build Agents with SDK
Bing Web Search Agent
Function Calling Agent
Spring Boot + Azure Key Vault Hello World Example
Spring Boot + Elasticsearch + Azure Key Vault Example
Spring Boot Azure AD (Entra ID) OAuth 2.0 Authentication
Deploy Spring Boot App to Azure App Service
Secure Azure App Service using Azure API Management
Deploy Spring Boot JAR to Azure App Service
Deploy Spring Boot + MySQL to Azure App Service
Spring Boot + Azure Managed Identity Example
Secure Spring Boot Azure Web App with Managed Identity + App Registration
Elasticsearch 8 Security - Integrate Azure AD OIDC