After enabling VPA in `Auto` mode, Pods are evicted and recreated repeatedly.
AdvancedTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → VPA updater evicts Pods to apply new recommendations. With bursty usage the recommendation changes often, and an HPA scaling on the same CPU/memory metric fights it.
Diagnose →
kubectl describe vpa api | sed -n '/Recommendation/,$p'
kubectl get events --field-selector reason=EvictedByVPA -A
kubectl get hpa api -o yaml | yq '.spec.metrics'
Fix → Switch VPA to updateMode: "Off" (recommendations only) or Initial, set minAllowed/maxAllowed, and never combine VPA with an HPA on the same resource metric.
Prevent → Use VPA as a recommender feeding manifest changes in Git; let HPA handle replica count.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced