title: Docker Kubernetes (Mac) - Autoscaler unable to find metrics
body: <p>I have installed a local instance of Kubernetes via Docker on my Mac. </p>
  
  <p>Following the <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/" rel="noreferrer">walkthrough</a> on how to activate autoscaling on a deployment I have experienced an issue. The autoscaler can't read the metrics.</p>
  
  <p>When I am running <code>kubectl describe hpa</code> the current cpu usage comes back as <strong>unknown / 50%</strong> with the warnings:</p>
  
  <blockquote>
    <p>Warning  FailedGetResourceMetric:
    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)   </p>
    
    <p>Warning FailedComputeMetricsReplicas 
    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)</p>
  </blockquote>
  
  <p>I have installed the metrics-server via <code>git clone https://github.com/kubernetes-incubator/metrics-server.git</code>and installed it with <code>kubectl create -f deploy/1.8+</code></p>