To migrate from the legacy vector-agent chart to the current vector chart, you must update your values.yaml to account for changes in deployment roles, tolerations, and default configurations.
Deploying as an Agent
To deploy the chart as a DaemonSet (the equivalent of the old agent behavior), set the role to "Agent":
role: "Agent"
Configuring Tolerations
The tolerations option no longer includes default values. If you need to match previous behavior (e.g., allowing the agent to run on master nodes), you must define them explicitly:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
Reverting to Legacy Default Configurations
The new chart enables the Vector API and a console sink by default, and renames the prometheus_exporter sink from prometheus_sink to prom_exporter. To maintain the exact configuration used in older versions, use the following customConfig block:
customConfig:
data_dir: /vector-data-dir
api:
enabled: false
sources:
kubernetes_logs:
type: kubernetes_logs
host_metrics:
filesystem:
devices:
excludes: [binfmt_misc]
filesystems:
excludes: [binfmt_misc]
mountpoints:
excludes: ["*/proc/sys/fs/binfmt_misc"]
type: host_metrics
internal_metrics:
type: internal_metrics
sinks:
prometheus_sink:
type: prometheus_exporter
inputs: [host_metrics, internal_metrics]
address: 0.0.0.0:9090