Enabling In-Place Updates of Pod Resources
This is a short guide covering the adoption mechanism of in-place Pod resource updates in Gardener Vertical Pod Autoscaler deployments.
Compatibility
Refer to the in-place resource updates guide for details on Kubernetes clusters compatibility, Vertical Pod Autoscaler feature gate definition and availability.
Configuration
Gardener provides a dedicated resource manager webhook capable of mutating VerticalPodAutoscaler resources, configured with update mode Auto or Recreate, with the in-place updates enabling InPlaceOrRecreate. Available for deployment with both gardenlet and gardener operator, the mutating webhook can be activated with the following feature gate, listed within the respective component manifest. Refer to the Gardener feature gates page for additional details:
VPAInPlaceUpdatesTo keep a VerticalPodAutoscaler resource out of the mutating webhook scope, add the following skip label, indicating that the resource should preserve its current configuration and not get updated:
vpa-in-place-updates.resources.gardener.cloud/skipgardenlet
To enable the mutating resource manager webhook, the VPAInPlaceUpdates feature gate must be set to true:
featureGates:
VPAInPlaceUpdates: trueRefer to the gardenlet component configuration manifest for an overview.
Shoot
When deployed in a
Shootcluster, the mutating webhook targetsvertical pod autoscalerresources inside thekube-systemandkubernetes-dashboardnamespaces.
To make use of the mutating resource manager webhook, the Shoot's Vertical Pod Autoscaler deployment must have the InPlaceOrRecreate feature gate enabled. Follow the in-place resource updates guide for more details about the Vertical Pod Autoscaler components setup.
Seed
When deployed in a
Seedcluster, the mutating webhook targetsvertical pod autoscalerresources outside thekube-systemandkubernetes-dashboardnamespaces.
To make use of the mutating resource manager webhook, the Seed's Vertical Pod Autoscaler deployment must have the InPlaceOrRecreate feature gate enabled. Follow the in-place resource updates guide for more details about the Vertical Pod Autoscaler components setup.
Gardener Operator
To enable the mutating resource manager webhook, the VPAInPlaceUpdates feature gate must be set to true:
featureGates:
VPAInPlaceUpdates: trueRefer to the operator component configuration manifest for an overview.