How to Override the aggregate-vector Configuration
log-storage-operator reconciles the ConfigMap that carries the Vector configuration for aggregate-vector and for each LogForward. Every time the ConfigMap drifts from what the operator derives from PlatformLogForward (or from LogForward), the operator patches it back.
For a short-term investigation or a temporary workaround, you can pin the ConfigMap so that the operator stops patching it and your edits survive. Set the log.alauda.io/user-managed=true annotation on the ConfigMap. Remove the annotation when you are done; the operator will then rebuild the ConfigMap from the CR on the next reconcile and your edits will be gone.
This is an escape hatch, not a supported configuration surface. Use it only when you have a specific short-term reason and remove it as soon as the reason is gone.
If your change is long-term, request a first-class field on the CR spec (or use the existing knobs in How to Tune the aggregate-vector Sink) instead of leaving the annotation on for a whole release.
TOC
Which ConfigMaps accept the annotationCommon use casesTurn the escape hatch onRoll the pod so your edit takes effectTurn the escape hatch offHow the platform interprets the annotationInteraction with other annotationsBefore you upgradeRelated TopicsWhich ConfigMaps accept the annotation
Only two families of ConfigMap consume this annotation:
Every other resource the operator manages — Razor Deployment, Kafka resources, ServiceAccount, Ingress, and side resources — ignores the annotation and continues to reconcile normally.
Common use cases
- Add a Vector
data_diror a transform that the CR spec does not expose. - Add a
consolesink or a#!DEBUGblock while investigating a Vector bug. - Freeze the exact Vector configuration for a reproduction window.
If any of the above becomes routine on your cluster, request the corresponding CR field and stop using the escape hatch.
Turn the escape hatch on
Annotate the ConfigMap you want to pin:
Then edit the ConfigMap as you normally would:
log-storage-operator skips the patch on the next reconcile and logs:
Roll the pod so your edit takes effect
Vector pods do not restart automatically when a user-managed ConfigMap changes, because the operator only computes its rollout hash from the resources it manages. Restart the Deployment yourself:
Turn the escape hatch off
Remove the annotation:
On the next reconcile the operator rebuilds the ConfigMap from the CR spec, discarding your edits.
How the platform interprets the annotation
The value comparison is intentionally strict so an accidental typo does not silently pin a ConfigMap.
Interaction with other annotations
The platform uses a handful of resource-level annotations for different purposes. They do not conflict and can coexist:
Before you upgrade
Before you upgrade the storage operator, check whether any cluster still has the annotation set. New operator versions may fix behavior or ship new sink defaults; a pinned ConfigMap keeps you on the old configuration and can hide the fix.
Remove the annotation on any ConfigMap that no longer needs it, verify the CR spec captures the pin you needed, and only then upgrade.
Related Topics
- How to Tune the aggregate-vector Sink — the supported knobs that most tuning requests fit into.
- How to Forward Logs to an External System with LogForward — the CR that produces
logforward-<name>-configConfigMaps. - Installation — the PLF creation flow.