QUESTION REGARDING DEPLOYMENT #5
-
Is it truly necessary to incorporate this session into our deployment? Let’s explore the potential benefits together! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
"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 Limits (via limits) |
Beta Was this translation helpful? Give feedback.
"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…