<p>Hallo fellow K8s Users,</p>
<p>I'm trying to understand whether the is a base request and\or limit per pod\container in k8s as they are today or if you know of a change in the future regarding that.</p>
<p>I've seen this answer:
<a href="https://stackoverflow.com/questions/57041111/what-is-the-default-memory-allocated-for-a-pod">What is the default memory allocated for a pod</a>
stating that there isn't any, at least for Google's implementation of k8s and I'd like to know for sure of that also for the current state of k8s in on-prem deployments.</p>
<p>Are there any base request or limit values for a container\pod?</p>
<p>EDIT:
Also is there a way k8s would predict container memory request by the application development language or environment variables set for deployment (like from java container RUN command or env: JVM_OPTS -Xms1G -Xmx1G)?</p>

<p>There isn't a default limit or request.
In order to configure default resources you should create a LimitRange resource as described here: <a href="https://docs.openshift.com/container-platform/3.11/dev_guide/compute_resources.html#dev-viewing-limit-ranges" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/3.11/dev_guide/compute_resources.html#dev-viewing-limit-ranges</a></p>
<p>If you want every new project to be created with certain resources limits you can modify the default project template as described here: <a href="https://docs.openshift.com/container-platform/3.11/admin_guide/managing_projects.html#modifying-the-template-for-new-projects" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/3.11/admin_guide/managing_projects.html#modifying-the-template-for-new-projects</a></p>
<p>This doesn't change in 4.6 as well, only the implementation of how to modify the LimitRange or default project template. (The methodology is exactly the same)</p>
<p>As for your question of predicting resources of applications, there are some players around this issue. I've only heard about turbonomic which can even change your Deployments resources automatically by utilization and maybe also some custom metrics.</p>
