I have an AWS t3.2xlarge (8 vCPU, 32 GiB Memory) instance which has K3S setup. I have an app that is configured to use 10GiB Memory and 3472 milli vCPU.
When I try to deploy the app, I keep getting error 0/1 nodes are available: 1 Insufficient cpu, 1 Insufficient memory. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.. (x44).
I have benchmarked and my app doesn’t go beyond 4GiB of memory usage. So why would I encounter this error. How can i do deep dive and get to know more?
Indeed, the value you set as resources on your app act as Kubernetes pod requested AND limit resources. So even if, in fact your app is consuming 10Mo memory but resources memory is set to be 10Go Qovery side, then 10Go will be reserved on the cluster.
You can have a look here and here for more detailed explanation.