Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minikube default CPU/Memory [closed]

I wonder what is the actual default memory and cpu for minikube in vm-driver=none mode:

 minikube config view memory && minikube config view cpu

is not showing anything when starting minikube without specifying them

like image 605
Berndinox Avatar asked Sep 06 '18 08:09

Berndinox


People also ask

How much memory does Minikube need?

Setup. This reserves 6 GB of RAM for Minikube and starts it up. If you're low on RAM and only intend to run the databases on Minikube, you can likely get away with a smaller number, like 2048.

How do I start Minikube with less memory?

If you are running minikube on Virtualbox you can open Virtualbox, right click on minikube's image then close > power off. Once the VM is turned off you can then go in Settings > System and modify the default memory allocated to minikube (which seems to be 4GB).


2 Answers

The default memory constant is 2048 (megabytes) as seen here.

This doesn't automatically change with the vm-driver.

like image 80
bn4t Avatar answered Sep 21 '22 06:09

bn4t


The default memory limit is 2GB and the CPU limit is 2. You can see the current config with the following command:

Altogether;

~ ❯ minikube config view vm-driver
- cpus: 4
- memory: 16384

Each one;

~ ❯ minikube config get memory                                          ✘ INT
16384

~ ❯ minikube config get cpus
4

Also, you can set default CPU and memory before starting the minikube:

minikube config set cpus 4
minikube config set memory 16384

❗ Do not forget, if you have already a minikube cluster you need to delete the minikube by executing minikube delete command and then executing minikube start command.

like image 26
hbceylan Avatar answered Sep 18 '22 06:09

hbceylan