Skip to content

VPA Updater

The VPA Updater is a core component of the Vertical Pod Autoscaler (VPA) system in Kubernetes, responsible for ensuring that Pods utilize the resource configurations recommended by the VPA Recommender.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

Function

The primary role of the Updater is to drive the actualization of resource recommendations. Because updating a Pod's resource requests and limits requires the Pod to be restarted, the Updater achieves this by evicting (deleting) the Pods that need to be updated.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

This action triggers the [[deployment|Deployment]] controller to recreate the Pod. During this recreation phase, the updated resource values are applied via the VPA Admission Controller before the new Pod is scheduled.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

Update Mode

The Updater's behavior is dictated by the updateMode setting in the VPA custom resource definition.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

When updateMode is set to Auto, the Updater actively performs evictions. Any configuration recommended by the VPA Recommender will trigger the Updater to evict the corresponding Pod to apply the new settings.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

Installation

The VPA Updater is deployed as a [[deployment|Deployment]] named vpa-updater within the kube-system namespace when the VPA components are installed.^[400-devops__06-Kubernetes__k8s-ithelp__Day27__README.md]

Sources