Minikube Quick Start
✍ Last Updated : September 19, 2022
🚪 Prequisite Knowledge (Optional)
[Containerization / Docker](Containerization Docker 2e0ce73ff63b419d9e2782d79c4cc440.md)
[Kubernetes Basics](Kubernetes Basics 13d23a5871e14e34b61adac97169813b.md)
❓ Key Question / Problem / Issue
- How to Setup Minikube in developer local machine
✅ Expected Output/Definition of Done
- runnable minikube
- Information on basic usage of minikube
🎁 Resulting Solution
Overview
Minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes
Install Docker
To install docker follow this doc https://docs.docker.com/desktop/install/windows-install/
Check Minikube Installed
Open your terminal or command prompt as Administrator
run
minikube version
result
minikube version: v1.26.0
commit: f4b412861bb746be73053c9f6d2895f12cf78565
Install Minikube
Download minikube installer here, using the installer will also add the binary to your PATH
Start Cluster
This will start a new cluster with the profile name "agones" and Kubernetes version 1.22.12
run
minikube start -p agones --kubernetes-version v1.22.12 --driver=hyperv --cpus 2 --memory 3.5GB --addons metrics-server
result
�� [agones] minikube v1.26.0 on Microsoft Windows 10 Pro 10.0.19042 Build 19042
✨ Using the hyperv driver based on user configuration
�� Starting control plane node agones in cluster agones
�� Creating hyperv VM (CPUs=2, Memory=3584MB, Disk=20000MB) ...
🐳 Preparing Kubernetes v1.22.12 on Docker 20.10.16 ...
▪ Generating certificates and keys ...
▪ Booting up control plane ...
▪ Configuring RBAC rules ...
🔎 Verifying Kubernetes components...
▪ Using image k8s.gcr.io/metrics-server/metrics-server:v0.6.1
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, metrics-server, default-storageclass
❗ C:\Program Files\Docker\Docker\resources\bin\kubectl.exe is version 1.24.2, which may have incompatibilites with Kubernetes 1.22.12.
▪ Want kubectl v1.22.12? Try 'minikube kubectl -- get pods -A'
🏄 Done! kubectl is now configured to use "agones" cluster and "default" namespace by default
and that’s it your Kubernetes cluster is now running
Stop Cluster
run
minikube stop -p agones
result
✋ Stopping node "agones" ...
🛑 Powering off "agones" via SSH ...
🛑 1 node stopped.
Delete Cluster
run
minikube delete -p agones
result
✋ Stopping node "agones" ...
🔥 Deleting "agones" in hyperv ...
💀 Removed all traces of the "agones" cluster.
Start Minikube Dashboard
Minikube has integrated support for the Kubernetes Dashboard UI
This will enable the dashboard add-on, and open the proxy in the default web browser
run
minikube -p agones dashboard
result
🔌 Enabling dashboard ...
▪ Using image kubernetesui/dashboard:v2.6.0
▪ Using image kubernetesui/metrics-scraper:v1.0.8
🤔 Verifying dashboard health ...
🚀 Launching proxy ...
🤔 Verifying proxy health ...
🎉 Opening http://127.0.0.1:64262/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
No Comments