Skip to content
Discussion options

You must be logged in to vote

"Hi Masab850, thanks for the thoughtful question!

Yes, incorporating the resources section in the deployment is a best practice, especially when deploying to a Kubernetes cluster — even for something as lightweight as a simple Flask app.

Here’s why it’s beneficial:
Resource Guarantees (via requests)
The values under requests ensure that the container is allocated a minimum amount of CPU and memory. Kubernetes uses these values for scheduling decisions, ensuring the app gets the baseline resources it needs to function smoothly.

Resource Limits (via limits)
These prevent the container from consuming more than the specified CPU or memory. This is essential to avoid a single container over-co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MiqdadProjects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
good first issue Good for newcomers
2 participants