How to Install Minikube on Ubuntu 24.04 LTS - Single-Node Kubernetes Cluster

Описание к видео How to Install Minikube on Ubuntu 24.04 LTS - Single-Node Kubernetes Cluster

Learn how to install Minikube on Ubuntu 24.04 and set up a single-node Kubernetes cluster with this step-by-step tutorial! This guide covers everything from installing updates and Docker and configuring Minikube and verifying your installation. Follow along to get your Kubernetes cluster up and running smoothly.

*Steps Covered in This Tutorial:*
1. *Install Updates*
sudo apt update
sudo apt install -y curl wget apt-transport-https ca-certificates
sudo apt upgrade -y

2. *Install Docker*
Add Docker Official GPG Key
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubu... -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

Add Docker APT Repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

Add Local User to Docker Group
sudo usermod -aG docker $USER
newgrp docker
docker --version
systemctl status docker

3. *Download and Install Minikube Binary*
For arm64
curl -LO https://storage.googleapis.com/miniku...
sudo install minikube-linux-arm64 /usr/local/bin/minikube && rm minikube-linux-arm64

For x86_64
curl -LO https://storage.googleapis.com/miniku...
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64

Check minikube version
minikube version

4. *Install kubectl*

For x86_64
curl -LO https://storage.googleapis.com/kubern...`curl -s https://storage.googleapis.com/kubern...`/bin/linux/amd64/kubectl

For arm64
curl -LO https://storage.googleapis.com/kubern...`curl -s https://storage.googleapis.com/kubern...`/bin/linux/arm64/kubectl

chmod +x kubectl
sudo mv kubectl /usr/local/bin/
kubectl version -o yaml

5. *Start Minikube*
minikube start --driver=docker
or
minikube start --memory 4096 --cpus 2 --driver docker

minikube status
kubectl cluster-info
kubectl get nodes

6. *Manage Minikube addons for extended functionality*
minikube addons list
minikube addons enable [addons-name]

7. *Verify Minikube Installation by deploying a sample Nginx application*
kubectl create deployment nginx-app --image=nginx
kubectl get deployments.apps nginx-app
kubectl get pods
kubectl expose deployment nginx-app --name=nginx-app-svc --type=NodePort --port=80
kubectl get svc nginx-app-svc
minikube service nginx-app-svc --url

8. *Stop, Start, and Delete Minikube*
minikube stop
minikube start
minikube delete

#Minikube #Ubuntu2404 #Kubernetes #Docker #LinuxTutorial #DevOps #TechTutorial #howto #KubernetesCluster

Bonus: Learn valuable tips throughout the process!

Keywords: Minikube, Kubernetes, Ubuntu 24.04, Single-Node Kubernetes Cluster, Docker, kubectl, Nginx Deployment, minikube addons

*Timestamps:*
0:04 Introduction
0:14 What is Minikube
2:45 Install Docker
5:56 Download and Install Minikube Binary
7:16 Installing Kubectl Utility
8:33 Start Minikube Cluster
10:47 Managing Minikube addons
13:01 Verify Minikube Installation
16:04 Stop, Start and Delete Minikube

Make sure to like, subscribe, and hit the notification bell to stay updated with our latest tutorials. Drop a comment if you have any questions or need further assistance!

Комментарии

Информация по комментариям в разработке