[QUESTION/HELP] How to specify how much system resources to allocate? #627
-
How to specify how much system resources to allocate? (CPU, RAM, etc)Hi, I am looking for a way to specify how much system resources (CPU, RAM, maybe Storage, etc) to allocate to a cluster like how Minikube lets you: Scope of your Questionk3d version v4.4.4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @tim-steg , thanks for opening this discussion! |
Beta Was this translation helpful? Give feedback.
Hi @tim-steg , thanks for opening this discussion!
Unlike Minikube (if default is still VM), k3d does not run a virtual machine that you can limit in resources.
Since the k3s containers are spawned in
privileged
mode, we also cannot leverage docker functionality to restrict their memory usage.However, if you want to emulate restrictions to your pods, we have the
--servers-memory
and--agents-memory
flags now which create fakememinfo
files to tell cadvisor (in k3s in docker) wrong memory details.If you want to ensure that your system doesn't get overloaded, then k3d doesn't give you any tools for that (but you can limit the Docker for Desktop VM, if you're on MacOS/Windows), if you real…