Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSRC_INSUFFICIENT_CORES on WSL2 Windows #9373

Closed
davidchieregato opened this issue Oct 1, 2020 · 6 comments
Closed

RSRC_INSUFFICIENT_CORES on WSL2 Windows #9373

davidchieregato opened this issue Oct 1, 2020 · 6 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@davidchieregato
Copy link

minikube start --driver=docker
πŸ˜„ minikube v1.13.1 on Ubuntu 20.04
✨ Using the docker driver based on user configuration

β›” Exiting due to RSRC_INSUFFICIENT_CORES: Docker has less than 2 CPUs available, but Kubernetes requires at least 2 to be available

The issues related to this error are talking about using minikube with a mono core machine, but in my case the error doesn't make sense at all as my device is a 16 core setup.

With sudo minikube start --driver=none instead I get the same error as in #8568

@priyawadhwa
Copy link

Hey @davidchieregato could you try increasing the number of cores available to Docker and see if that resolves the issue?

@priyawadhwa priyawadhwa added the kind/support Categorizes issue or PR as a support question. label Oct 5, 2020
@davidchieregato
Copy link
Author

Solved with
minikube config set cpus 16

@chiehpower
Copy link

Dear experts,

Even I already set up 16, but it still appeared the same error message...

$ minikube start --driver=docker                                                                                                                         
πŸ˜„  minikube v1.14.1 on Ubuntu 18.04
✨  Using the docker driver based on user configuration
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating docker container (CPUs=16, Memory=8000MB) ...

β›”  Exiting due to RSRC_INSUFFICIENT_CORES: Docker has less than 2 CPUs available, but Kubernetes requires at least 2 to be available

Is there any idea?
Thank you.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Nov 9, 2020

@chiehpower : doesn't seem to be about Windows at all ?
How many cores / CPU does the docker host have ?

Please open a new ticket.

@chiehpower
Copy link

@chiehpower : doesn't seem to be about Windows at all ?
How many cores / CPU does the docker host have ?

Please open a new ticket.

It was working on Linux indeed, but I saw the error message was similar so I thought the solution might be woked.
I will create a new issue. Thanks for your reply!!!

@sachincalsoft-dev
Copy link

Helped @davidchieregato 's solution, set cpus<=available cpus
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

5 participants