<pre><code>apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
 name: testingHPA

spec:
 scaleTargetRef:
   apiVersion: apps/v1beta1
   kind: Deployment
   name: my_app
 minReplicas: 3
 maxReplicas: 5
 targetCPUUtilizationPercentage: 85
</code></pre>
<p>Above is the normal hpa.yaml structure, is it possible to use kind as a pod and auto scale it ??</p>

Museb Momin
<p>As already pointed by others, it is not possible to set <code>Pod</code> as the <code>Kind</code> object as the target resource for an HPA.</p>
<p>The <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/" rel="nofollow noreferrer">document describes HPA</a> as:</p>
<blockquote>
<p>The Horizontal Pod Autoscaler automatically scales the number of Pods
in a replication controller, deployment, replica set or stateful set
based on observed CPU utilization (or, with custom metrics support, on
some other application-provided metrics). Note that Horizontal Pod
Autoscaling does not apply to objects that can't be scaled, for
example, DaemonSets.</p>
</blockquote>
<p>The document also described how the algorithm is implemented at the backend as:</p>
<pre><code>desiredReplicas = ceil[currentReplicas * ( currentMetricValue / desiredMetricValue )]
</code></pre>
<p>and since the <code>Pod</code> resource does not have the replicas field as part of its spec therefore we can conclude that the same is not supported for auto scaling using the HPA.</p>
