Skip to content

Vertical Pod Autoscaler does not respect safe-to-evict: False annotations #8431

@jan-kantert

Description

@jan-kantert

Which component are you using?:

/area vertical-pod-autoscaler

What version of the component are you using?:

Component version: v1.4.1 (and most previous versions)

What k8s version are you using (kubectl version)?:

1.30

What environment is this in?:

KOPS on AWS

What did you expect to happen?:

When a pod is annotated with cluster-autoscaler.kubernetes.io/safe-to-evict: False we expect that that the VPA updater does not evict the pod. We temporarily add those annotations to minimize restarts during certain periods.

What happened instead?:

The VPA updater will evict pods with cluster-autoscaler.kubernetes.io/safe-to-evict: False.

How to reproduce it (as minimally and precisely as possible):

  1. Configure a VPA for your pod
  2. Annotate your pod with cluster-autoscaler.kubernetes.io/safe-to-evict: False
  3. Make sure resource usage changes.
  4. VPA updater will evict the pod

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions