<p>I am getting the following error in aws EKS version 16 .</p>
<blockquote>
<p>Failed to install app test. Error: unable to build kubernetes objects
from release manifest: error validating &quot;&quot;: error validating data:
ValidationError(VerticalPodAutoscaler.spec): unknown field &quot;labels&quot; in
io.k8s.autoscaling.v1.VerticalPodAutoscaler.spec</p>
</blockquote>
<p>This is my yaml, And also I tried with apiVersion: autoscaling.k8s.io/v1beta2 but same error</p>
<pre><code>---
apiVersion: &quot;autoscaling.k8s.io/v1&quot;
kind: VerticalPodAutoscaler
metadata:
  name: web
spec:
  labels:
    app: web
  targetRef:
    apiVersion: &quot;apps/v1&quot;
    kind:       StatefulSet
    name:       web
  updatePolicy:
    updateMode: &quot;Auto&quot;
...
</code></pre>

user3756483
<p>Check this repo .</p>
<p><a href="https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L61" rel="nofollow noreferrer">https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L61</a></p>
<p>Spec has only three field:</p>
<blockquote>
<p>TargetRef, UpdatePolicy, ResourcePolicy</p>
</blockquote>
<p>This is true for all three versions available autoscaling.k8s.io/v1 , autoscaling.k8s.io/v1beta1, autoscaling.k8s.io/v1beta2</p>
