<pre><code>2022-08-17T16:14:15.5682728Z error: error validating &quot;deployment.yml&quot;: error validating data: ValidationError(HorizontalPodAutoscaler.spec.metrics[1].resource.target.averageUtilization): invalid type for io.k8s.api.autoscaling.v2.MetricTarget.averageUtilization: got &quot;string&quot;, expected &quot;integer&quot;; if you choose to ignore these errors, turn validation off with --validate=false
</code></pre>
<pre><code>---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: hpa-xyz
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: StatefulSet
    name: XYZ
  minReplicas: ${MinRequestForwarderReplicas}
  maxReplicas: ${MaxRequestForwarderReplicas}
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 75
  - type: Resource
    resource:
      name: memory
      target:
        type: Utilization
        averageUtilization: 1500Mi
</code></pre>
<p>I tried the memory &quot;averageUtilization&quot; values with 1.5Gi and &quot;1.5Gi&quot; with double quotes. Can anyone check and let me know if I am missing something here?</p>

<pre><code>averageUtilization: 
</code></pre>
<p>is represented as a percent of requested memory. So you're wrong with <code>Mi</code>.</p>
<p>It should be.</p>
<pre><code>averageUtilization: 65 
</code></pre>
<p>Specify <code>averageUtilization</code> and a target average memory utilization over all the pods, represented as a percent of requested memory. The target pods must have memory requests configured.</p>
