Introduction
When you run applications in Kubernetes, you need to tell the system how much CPU and memory your app needs. Resource requests and limits help Kubernetes decide how to share the computer's power fairly and keep apps running smoothly without crashing or slowing down.
When you want to make sure your app always gets enough CPU and memory to work well.
When you want to stop one app from using too much CPU or memory and slowing down others.
When you want Kubernetes to schedule your app only on nodes that have enough free resources.
When you want to avoid your app being killed because it uses too much memory.
When you want to optimize your cluster's resource usage and avoid wasting CPU or memory.