I am on a learning curve with Kubernetes and recently started working with K3D. I am trying to deploy my project on a local K3D cluster. When I created a pod to run an application, I saw it hang in the pending state for some time, and below is the kubectl describe pod
output (events).
application.yaml file's resource requirements are as below
resources:
requests:
memory: "4Gi"
cpu: "2"
The output of kubectl decribe node
is as below: I assumed this was due to the fact that my node has around 3 GB of memory and the app is requesting 4 GB. I am getting the error in Pod. I looked for an answer to increase the memory but had no luck so far.
How can I increase the memory to get the application up and running? If I reduce the app.yaml resource to --> memory: 3 Gi or 2 Gi, the app starts running, but the actual functionality of the app is not there. Whenever I try to do something in the app, it then gives me Not enough CPU and/or memory is available for
error in my application.
I am running this on Linux and k3d version k3d version v5.5.1 k3s version v1.26.4-k3s1 (default)
Thanks!