Minikube Quick Start
β Last Updated : September 19, 2022
πͺ Prequisite Knowledge (Optional)
Upload[Containerization In/ ProgressDocker](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...