Cluster component
Vertical Pod Autoscaler (recommender only)
Suggests CPU and memory requests from actual use.
- Memory when idle
- about 10 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 and ARM servers
- Installed by default
- Optional
Introduction
The Vertical Pod Autoscaler (VPA) recommender watches how much CPU and memory a workload really uses and suggests resource requests. This component installs the recommender only. The updater and the admission controller are off, so nothing evicts or rewrites a Pod. A suggestion changes nothing until you apply it.
Install it when you want to size requests from real use. It needs Metrics Server, and Zeabur OSS installs that first. It reads Pods, workloads and metrics in every namespace, and writes the status and checkpoints of VerticalPodAutoscaler objects. It runs under the restricted Pod Security level.
Use it
VPA has no Zeabur OSS screen. Create a VerticalPodAutoscaler for a workload, with updateMode: "Off":
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: web
namespace: shop
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: web
updatePolicy:
updateMode: "Off"
Read the suggestion once the recommender has data:
kubectl -n shop get vpa web -o jsonpath='{.status.recommendation.containerRecommendations}'
Copy the values into the workload’s requests yourself. See the VPA documentation.
Remove it
Removal deletes the recommender. The CRDs stay, and so do your VerticalPodAutoscaler objects, which no longer get updates. See Remove components.
Troubleshooting
A VerticalPodAutoscaler has no recommendation
Read its conditions, then the recommender log:
kubectl -n shop describe vpa web
kubectl -n vpa-system logs deploy/vpa-vertical-pod-autoscaler-recommender
A NoPodsMatched condition means the targetRef selects no Pods. Check the name and the kind.
Technical details
This release
- Provides
- resource-recommendations
- Licence
- Apache-2.0
- Homepage
- github.com
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| k3s | linux/amd64 | v1.37.2 | 11 MiB | |
| k3s | linux/arm64 | v1.37.2 | 10 MiB | |
| kind | linux/amd64 | v1.37.0 | 10 MiB | |
| kind | linux/arm64 | v1.37.0 | 9 MiB | |
| kubesolo | linux/amd64 | v1.36.6 | 9 MiB | |
| kubesolo | linux/arm64 | v1.36.6 | 10 MiB | |
| rke2 | linux/amd64 | v1.37.2 | 12 MiB | |
| rke2 | linux/arm64 | v1.37.2 | 11 MiB |
Security
Reads pods, workloads and metrics in all namespaces; writes VPA status.
What it installs
- vpa 0.16.0