title: Azure AKS HPA failed to get cpu utilization
body: <p>I have a single node K8s cluster in Azure using AKS. I created a deployment and a service using a simple command:</p>
  
  <p><code>kubectl run php-apache --image=pilchard/hpa-example:latest --requests=cpu=200m,memory=300M --expose --port=80</code></p>
  
  <p>And enabled HPA via command:
  <code>kubectl autoscale deployment php-apache --cpu-percent=10 --min=1 --max=15</code></p>
  
  <p>Upon running <code>kubectl describe hpa php-apache</code>, I see an error saying:</p>
  
  <pre><code>horizontal-pod-autoscaler  unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)
  horizontal-pod-autoscaler  failed to get cpu utilization: unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)
  </code></pre>
  
  <p>And CPU metric is unknown upon running <code>kubectl get hpa</code>. Any help would be really appreciated.</p>
  
  <p>My AKS kube version is <code>v1.9.11</code>.</p>