title: Kubernetes container won't set Request resources (CPU & RAM) properly
body: <p>I am trying to set a <em>fixed</em> resource value to my <a href="https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api/core/v1/types.go" rel="nofollow noreferrer">kubernetes container</a>. When I try the following:</p>
  
  <pre><code>//cont = v1.Container
  log.Println("Before", cont.Resources.Requests.Memory())
  cont.Resources.Requests.Memory().SetMilli(512) //new wanted value
  log.Println("After", cont.Resources.Requests.Memory())
  
  log.Println("Before", cont.Resources.Requests.Cpu())
  cont.Resources.Requests.Cpu().SetScaled(2, resource.Giga) //new wanted value
  log.Println("After", cont.Resources.Requests.Cpu())
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>Before 0
  After 0
  Before 0
  After 0
  </code></pre>
  
  <p>Why doesn't <code>Set</code> update my values to the newer ones? How can I set the CPU &amp; RAM resources properly? </p>