Skip to main content

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

  1. How to Setup Minikube in developer local machine

βœ… Expected Output/Definition of Done

  1. runnable minikube
  2. 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...