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
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
The default memory constant is 2048 (megabytes) as seen here.
This doesn't automatically change with the vm-driver.
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.
Default Minikube cluster CPU is 2
Default Minikube cluster memory is 2048
minikube config get cpus
minikube config get memory
Note:
cat ~/.minikube/config/config.json won't be displaying the details until you manually configure it
This probably only makes sense for OSX / windows users.
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).
if you are using vagrant to create your linux (Ubuntu) instance, default memory allocation to newly created linux instance would be around 1GB, but Minikube need minimum 2 GB to run.
simple hack is shut down your VM instance, go to settings and increase the memory size (3GB preferred - 1GB for OS 2GB for Minikube) and now try running your instance and Minikube start.