Lab: CKA Mock Exam 2

Deploy a Vertical Pod Autoscaler (VPA) named analytics-vpa for a deployment named analytics-deployment in the cka24456 namespace. The VPA should automatically adjust the CPU and memory requests of the pods to optimize resource utilization. Ensure that the VPA operates in Auto mode, allowing it to evict and recreate pods with updated resource requests as needed.

Solution say to use

 updatePolicy:
    updateMode: "Auto"

As per documentation

The Auto update mode is deprecated since VPA version 1.4.0 . Use Recreate for eviction-based updates, or InPlaceOrRecreate for in-place updates with eviction fallback.

Please help if i am thinking in wrong direction

The VPA controller used in the lab is of version v1.3.0, and updateMode: Auto is supported.

You need to confirm the VPA controller version during the exam and use the appropriate fields.