Vertical Pod Autoscaler RequestsOnly Admission Webhook Warning in RHOCP4
Issue
-
While specifying any parameters under
resourcePolicy
on a VPA object, getting the following Admission Webhook Warning.VerticalPodAutoscaler amq-broker-controller-manager violates policy 299 - "unknown field \"Â resourcePolicy\"", 299 - "unknown field \"Â Â Â - containerName\"", 299 - "unknown field \"Â Â Â containerPolicies\"", 299 - "unknown field \"Â Â Â Â Â controlledResources\"", 299 - "unknown field \"Â Â Â Â Â controlledValues\"
-
Unable to implement VPA feature.
-
Parameters under
resourcePolicy
on a VPA object yaml.apiVersion: autoscaling.k8s.io/v1 kind: VerticalPodAutoscaler metadata: name: vpa-ami-example namespace: automated-underwriting-dev spec: targetRef: apiVersion: apps/v1 kind: Deployment name: ami-example updatePolicy: updateMode: "Off" resourcePolicy: containerPolicies: - containerName: "*" controlledResources: ["cpu", "memory"] controlledValues: "RequestsOnly"
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.