title: Kubernetes pod cpu usage calculation method for HPA
body: <p>Can someone explain how the cpu usage is calculated inside pods with multiple containers for use with an Horizontal Pod Autoscaler?
  Is it the mean value and how is this calculated?</p>
  
  <p>For example:
  If we have 2 containers:</p>
  
  <ul>
  <li>Container1 requests 0.5 cpu and uses 0 cpu</li>
  <li>Container2 requests 1 cpu    and uses 2 cpu</li>
  </ul>
  
  <p>If we calculate both seperatly and take the mean: (0% + 200%)/2 = 100% usage?</p>
  
  <p>If we take the sums and take the mean: 2/1.5 = 133% usage?</p>
  
  <p>Or is my logic way off?</p>