-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Warn about default Docker Desktop resources #7980
Comments
I thought minikube was supposed to be able to run in a 2GB virtual machine ? Were you able to log in to the machine, and see what is using the most memory ? The documentation is a bit vague, if it is the VM that needs 2G or if it is Kubernetes. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/ But it does seem to say that it is the machine, and that it leaves room for apps ?
So if the
Do you know if the situation is the same in the Docker-for-Mac VM ? |
Never mind, it seems to be identical: https://docs.docker.com/docker-for-mac/#resources |
LinuxThe 8G default was when using Docker Engine, running on Ubuntu (with same 32 GB RAM)
There is no VM, so Docker has access to all of it. So the limit comes from minikube here: // Suggest 25% of RAM, rounded to nearest 100MB. Hyper-V requires an even number!
suggested := int(float32(sysLimit)/400.0) * 100
|
OpenShiftAs a comparison, minishift4 ("CodeReady Containers") now requires 8 GB of memory:
Minikube (VM/BM)So maybe it is time to increase the minikube requirements to 4 GB of memory now ? Perhaps also increase the default disk image size too, from 19.53 GiB to 39.06 GiB. https://minikube.sigs.k8s.io/docs/start/
Or we could do like the games: "Minimum" vs. "Recommended" For minishift3, I think it was rather similar to the minikube requirements. Which in turn is twice the amount of the docker-machine requirements... |
Also related to #3574 - minikube should be able to warn you when the VM is runnnig low... |
the thing is, minikube runs with 2 GB ram, but super slow ! most users don't notice that docker desktop was installed by default with 2 GB ram |
It should run (at least "idle") on the default memory allocation, without swapping ("super slow"). Before, we have only added swap when running on 1 GB ram, and is not really recommended or supported. Note that kubeadm does not support using swap at all, as it leads to issues when orchestrating. But will move the general discussion to a new issue, I think. It's bigger than "just" Docker VM... I think it would make sense to make it the new "performance" goal (a memory usage analysis) ? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
on a fresh windows machine with 32 GB ram and 8 CPus I installed docker-desktop with all default settings,
I noticed a painfully slower than normal minikube significantly (I dont know how to time commands in powershell)
then I noticed docker desktop by default only has 2 GB ram, no matter what your system is.
We need to
1- Detect the docker desktop resources
2- Warn the user to Increase if possible
The text was updated successfully, but these errors were encountered: