-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
How can I increase number of CPUs? #12713
Comments
@giuseppe PTAL |
I don't think that error is coming from Podman. It looks like a check in Minikube itself. Are you running Podman as rootless? Does it work differently if you run as root? |
The amount of cpus and memory is set when the machine is created, so you will need to re-create it:
Make sure to save any images and such before deleting, it might be possible to edit the json directly. |
Podman defaults to 1 vCPU and 2 GiB RAM, while https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ Also increased the disk size from 10 GiB to 20 GiB, since it is also tricky to do afterwards. |
If there existed any "Podman Desktop" documentation for this, minikube could be linking to it: if availableCPUs < cpuCount {
if driver.IsDockerDesktop(drvName) {
out.Styled(style.Empty, `- Ensure your {{.driver_name}} daemon has access to enough CPU/memory resources.`, out.V{"driver_name": drvName})
if runtime.GOOS == "darwin" {
out.Styled(style.Empty, `- Docs https://docs.docker.com/docker-for-mac/#resources`)
}
if runtime.GOOS == "windows" {
out.String("\n\t")
out.Styled(style.Empty, `- Docs https://docs.docker.com/docker-for-windows/#resources`)
}
}
exitIfNotForced(reason.RsrcInsufficientCores, "Requested cpu count {{.requested_cpus}} is greater than the available cpus of {{.avail_cpus}}", out.V{"requested_cpus": cpuCount, "avail_cpus": availableCPUs})
} But it would need to be user facing, I don't think the CLI help or the man page would be enough. |
Interested in adding documentation? |
Thanks. I was able to fix the error! |
Would it make sense to change the podman machine configuration to use 2 cpus? |
Possibly, if you want it to run kubeadm ? Otherwise 1 vCPU and 1 GiB used to be fine... (as in: docker-machine and podman-machine started out with those humble requirements) But Lima uses 4 vCPU and 4 GiB by default, so I guess it depends on the situation. i.e. the available resources on the local laptop, and how many VMs you plan to run ? |
I think it is documented in the man page: https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html But there is no User Manual, as such. |
Aren't these settings available in the containers.conf? |
I don't think minikube works with podman remote / machine yet, it failed for me as well... The first thing would be to switch the VM over to run regular containers instead of rootless:
Anyway, these issues are unrelated to how to make the VM have 2 vCPU instead of 1 vCPU |
https://podman.io/getting-started/installation#macos links to this page for "advanced": https://github.com/containers/podman/blob/main/docs/tutorials/mac_experimental.md It doesn't mention either --cpus or containers.conf, for changing the machine init. |
A friendly reminder that this issue had no activity for 30 days. |
#12718 was merged. Closing the issue |
|
I have been trying to increase the amount of cpus of my podman because I am not able to start minikube:
How can I fix this? I am temporarily have to switch back to docker where it runs without a problem.
I could not find a reliable resource or explanation how to increase the amount of cpus podman uses.
I have tried
Version (latest from brew):
The text was updated successfully, but these errors were encountered: