title: Kubernetes - How to calculate resources we need for each container?
body: <p>How to figure out how much min and max resources to allocate for each application deployment? I'm setting up a cluster and I haven't setup any resources and letting it run freely.</p>
  <p>I guess I could use <code>top command</code> to figure out the load during the peak time and work on that but still top says like 6% or 10% but then I'm not sure how to calculate them to produce something like <code>0.5 cpu</code> or <code>100 MB</code>. Is there a method/formula to determine max and min based on <code>top command</code> usage?</p>
  <p>I'm running two t3.medium nodes  and I have the following pods <code>httpd and tomcat in namespace1</code>, <code>mysql in namepsace2</code>, <code>jenkins and gitlab in namespace3</code>. Is there any guide to minimum resources it needs? or Do I have to figure it based on top or some other method?</p>