Open Source
All templates and components

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.

DistributionPlatformKubernetesPassedIdle memory
k3slinux/amd64v1.37.211 MiB
k3slinux/arm64v1.37.210 MiB
kindlinux/amd64v1.37.010 MiB
kindlinux/arm64v1.37.09 MiB
kubesololinux/amd64v1.36.69 MiB
kubesololinux/arm64v1.36.610 MiB
rke2linux/amd64v1.37.212 MiB
rke2linux/arm64v1.37.211 MiB

Security

Reads pods, workloads and metrics in all namespaces; writes VPA status.

What it installs