mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 04:33:36 +09:00
vpa.yaml sized only metrics and logs components; the trace components got no VerticalPodAutoscaler, so they sat at the operator's static defaults with no way to size them (tracingStorages has no resource knobs and the template hardcodes resources/replicaCount). Add VPAs per tracingStorages entry, branching on mode: cluster mode gets vtinsert and vtselect (Deployments) + vtstorage (StatefulSet), single mode gets vtsingle (Deployment). Kinds verified against victoria-metrics-operator v0.68.4. updateMode: Initial like the rest of the file (no eviction, because of the Cilium IP-reuse race), which is also required for VTSingle's plain RWO PVC (an evicting VPA would deadlock on multi-attach). Bounds are hardcoded, without the dead min/maxAllowed conditionals the logs entries carry (tracingStorages declares no such properties). Empty tracingStorages renders no trace VPA. Tests cover the cluster three-VPA split, the single-mode single VPA with its updateMode, and off-by-default. Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io> Assisted-by: LLM