From Laptop Heater to Dev Powerhouse: Taming Minikube’s Resources


Why is Minikube Such a Resource Hog?

image
  • The Brains: API Server, Scheduler, and Controller Manager.
  • The Memory: etcd (the cluster’s database).
  • The Networking: CoreDNS and kube-proxy.
  • The Extras: Any add-ons like Dashboards or Ingress controllers you’ve toggled on.

The “Low-Carb” Configuration Guide

1. Tighten the Resource Bolts

minikube stop
minikube start --memory=1536 --cpus=1

2. Ditch the VM (Use the Docker Driver)

image
minikube start --driver=docker

3. Move to containerd

minikube start --container-runtime=containerd

Maintenance: Keeping the Cluster Clean

Disable “Ghost” Add-ons

  • dashboard: Looks pretty, but uses a lot of memory. Use kubectl instead.
  • metrics-server: Useful for HPA, but skip it if you’re just practicing basic deployments.

Purge Unused Images

minikube ssh
# If using Docker driver:
docker system prune -a

The “Ultimate Performance” Command

minikube start \
  --memory=2048 \
  --cpus=2 \
  --driver=docker \
  --container-runtime=containerd \
  --addons=disable-all

When to Outgrow Minikube

image
AlternativeBest ForWhy it’s lighter
KindCI/CD & Local DevRuns clusters entirely as Docker containers.
K3sEdge ComputingA highly optimized, single-binary K8s distribution.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *