Minikube Installation Step by Step | Minikube Setup & Configuration from Scratch | Kubernetes
Автор: DevSecops
Загружено: 2025-12-18
Просмотров: 30
Notes:
=====
Install Docker
sudo apt update && sudo apt -y install docker.io
Make sure Docker is running
sudo systemctl status docker
#you need install cri-dockerd - a CRI (Container Runtime Interface) adapter for Docker.
ubuntu@ip-172-31-47-41:~$ cat cri.sh
#!/bin/bash
Set the version
CRI_DOCKERD_VERSION="0.3.15"
Download cri-dockerd
wget https://github.com/Mirantis/cri-docke...{CRI_DOCKERD_VERSION}/cri-dockerd-${CRI_DOCKERD_VERSION}.amd64.tgz
Extract and install the binary
tar xvf cri-dockerd-${CRI_DOCKERD_VERSION}.amd64.tgz
sudo mv cri-dockerd/cri-dockerd /usr/local/bin/
Make it executable
sudo chmod +x /usr/local/bin/cri-dockerd
Download systemd service files
sudo wget https://raw.githubusercontent.com/Mir... -O /etc/systemd/system/cri-docker.service
sudo wget https://raw.githubusercontent.com/Mir... -O /etc/systemd/system/cri-docker.socket
Fix the binary path in the service file
sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service
Reload systemd daemon
sudo systemctl daemon-reload
Enable and start cri-docker
sudo systemctl enable cri-docker.service
sudo systemctl enable cri-docker.socket
sudo systemctl start cri-docker.socket
Verify it's running
sudo systemctl status cri-docker.socket
Check if the socket is active
sudo systemctl status cri-docker.socket
Check if the service can start
sudo systemctl status cri-docker.service
Verify the socket file exists
ls -la /var/run/cri-dockerd.sock
====================================================================
Network CNI Plugin need to be installed
wget https://github.com/containernetworkin... && sudo mkdir -p /opt/cni/bin && sudo tar -xzf cni-plugins-linux-amd64-v1.3.0.tgz -C /opt/cni/bin
/opt/cni/bin/bridge --version
=========================================================
Install Kubectl
curl -LO https://storage.googleapis.com/kubern... && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl && kubectl version
#Install conntrack (required for Minikube)
sudo apt install -y conntrack
conntrack --version
install crictl
wget https://github.com/kubernetes-sigs/cr...
sudo tar zxvf crictl-v1.31.1-linux-amd64.tar.gz -C /usr/local/bin
rm -f crictl-v1.31.1-linux-amd64.tar.gz
Verify crictl is installed
crictl --version
Install Latest Minikube (v1.36.0)
===================================
Download latest Minikube version
curl -Lo minikube https://storage.googleapis.com/miniku...
chmod +x minikube
sudo mv minikube /usr/local/bin/
Verify Minikube installation
minikube version
Option 2: Start with none driver (no VM, runs on host)
minikube start --driver=none
#Check Minikube Status
minikube status
kubectl cluster-info
Once Minikube is installed Copy the minikube to /home/ubuntu user location
Copy the entire .minikube directory from root to your home
sudo cp -r /root/.minikube /home/ubuntu/
Change ownership to your user
sudo chown -R ubuntu:ubuntu /home/ubuntu/.minikube
Update the kubeconfig to use the correct paths
sed -i 's|/root/.minikube|/home/ubuntu/.minikube|g' ~/.kube/config
Verify the paths are updated
grep "certificate-authority\|client-cert\|client-key" ~/.kube/config
Test kubectl
kubectl get nodes
===================================
Useful Minikube Commands
===================================
Stop Minikube
minikube stop
Delete Minikube cluster
minikube delete
========
In this video, we will setup Minikube from scratch and understand its complete configuration step by step.
Basically, Minikube helps us create a local single-node Kubernetes cluster for learning and practice. However, since setting up big Kubernetes clusters involves many technical huddles, Minikube removes most pain points and provides an easy Kubernetes lab.
This is where beginners, DevOps engineers, and interview aspirants can practice Pods, kubectl commands, and cluster operations. Despite of using a simple setup, Minikube behaves like a real Kubernetes cluster.
Topics covered:
Why we need Minikube
Minikube setup & configuration
Docker and cri-dockerd explanation
Kubernetes Pod YAML explanation
kubectl practical commands
This is where real Kubernetes learning starts.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: