<p>I'm not able to get the metrics for the pod. The result for "describe hpa " command is shown below. I can not autoscale!!!</p>

<p><a href="https://i.stack.imgur.com/8q7RN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8q7RN.png" alt="result for describe hpa command"></a>
my kubernetes version and result for "get hpa" is given in this screenshot below.
<a href="https://i.stack.imgur.com/nn29E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nn29E.png" alt="enter image description here"></a> 
Please help me to autoscale my app. I used this instruction to install hpa <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#run-expose-php-apache-server]" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#run-expose-php-apache-server]</a><a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#run-expose-php-apache-server" rel="nofollow noreferrer">3</a>. I'm using digital ocean cloud to run my cluster.Help me install anything to get metrics so I can use that to hpa. </p>

AATHITH RAJENDRAN
<p>I was able to recreate this issue.</p>

<p>Digital Ocean does not support Cluster Auto scaling as mentioned <a href="https://www.digitalocean.com/docs/kubernetes/overview/" rel="nofollow noreferrer">here</a>. But it seems that HPA should work, as it scales pods. </p>

<p>I was able to work with this and get the HPA to work. Note that I did not spend a significant amount of time on this, so I am not yet aware if there are any issues later on. My goal was to make hpa scale and this was successful.</p>

<p>First install the <a href="https://github.com/kubernetes-incubator/metrics-server" rel="nofollow noreferrer">Metrics server</a> as the Heapster is deprecated. I did that by git clone and then <code>kubectl create -f deploy/1.8+/</code>.</p>

<p>Next find the metrics server deployment and edit it:</p>

<p><code>kubectl edit deployment metrics-server -n kube-system</code></p>

<p>Under <code>spec:</code> -><code>containers:</code> add following metrics:</p>

<pre><code>spec:
      containers:
      - command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalIP
        - --logtostderr
</code></pre>

<p>Wait few minutes, when you will call <code>kubectl get hpa</code> you will see that under TARGETS<code>&lt;unknown&gt;/50%</code>changes to <code>0%/50%</code> you are ready to generate the load and scale the pods. After you stop the load, the hpa will slowly start removing the pods. </p>

<p>UPDATE:</p>

<p>you probably missed a dash. It should look like this.</p>

<pre><code>spec:
      containers:
      - command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalIP
        - --logtostderr
        image: k8s.gcr.io/metrics-server-amd64:v0.3.1
</code></pre>

<p>Delete the dash that was in front of "image". </p>

<p>Hope this helps. </p>
