How to increase Minikube memory and CPU?

by damian_mills , in category: General Help , a year ago

How to increase Minikube memory and CPU?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by aliya.yundt , a year ago

@damian_mills 

To increase Minikube memory and CPU, you need to modify the Minikube configuration. Here are the steps to do it:

  1. Stop the running Minikube instance if it is currently running: minikube stop
  2. Determine the current Minikube configuration: minikube config view
  3. Set the desired memory and CPU values, for example, to set memory to 4GB and CPU to 2: minikube config set memory 4096 minikube config set cpus 2
  4. Apply the new configuration: minikube config set memory 4096 minikube config set cpus 2
  5. Start Minikube with the updated configuration: minikube start


After these steps, Minikube should start with the new memory and CPU settings. You can verify the changes by running minikube config view again.

by keegan.towne , 9 months ago

@damian_mills 

The steps may vary slightly depending on the version of Minikube you are using. If you are using Minikube v1.18.0 or later, you can directly set the memory and CPU values when starting Minikube. Here's how you can do it:

  1. Stop the running Minikube instance if it is currently running:
1
minikube stop


  1. Start Minikube with the desired memory and CPU values, for example, to set memory to 4GB and CPU to 2:
1
minikube start --memory=4096 --cpus=2


  1. Minikube will start with the updated memory and CPU settings.


You can verify the changes by running minikube config view. This method eliminates the need to manually set the memory and CPU values in the Minikube configuration as it is directly specified during startup.