title: AKS Horizontal Pod Autoscaling - missing request for cpu
body: <p>I have been trying to set up an Kubernetes 1.13 AKS deployment to use HPA, and I keep running into a problem:</p>
  
  <pre><code>NAME                     REFERENCE                           TARGETS         MINPODS   MAXPODS   REPLICAS   AGE
  dev-hpa-poc   Deployment/dev-hpa-poc   &lt;unknown&gt;/50%   1         4         2          65m
  </code></pre>
  
  <p>Describing the HPA gives me these events:</p>
  
  <pre><code>Events:
    Type     Reason                        Age                   From                       Message
    ----     ------                        ----                  ----                       -------
    Warning  FailedComputeMetricsReplicas  5m4s (x200 over 55m)  horizontal-pod-autoscaler  failed to get cpu utilization: missing request for cpu
    Warning  FailedGetResourceMetric       3s (x220 over 55m)    horizontal-pod-autoscaler  missing request for cpu
  </code></pre>
  
  <p>It doesn't appear to be able to actually retrieve CPU usage. I have specified cpu and memory usage in the deployment YAML:</p>
  
  <pre><code>        resources:
            requests:
              cpu: 250m
              memory: 128Mi
            limits:
              cpu: 800m
              memory: 1024Mi
  </code></pre>
  
  <p>The system:metrics-server is running and healthy, too, so that's not it. I can monitor pod health and CPU usage from the Azure portal. Any ideas as to what I'm missing? Could this potentially be a permissions issue?</p>