vector
Helm chart for Vector, a lightweight, ultra-fast tool for building observability pipelines
About this chart
Vector
Vector is a high-performance, end-to-end observability data pipeline that puts you in control of your observability data. Collect, transform, and route all your logs, metrics, and traces to any vendors you want today and any other vendors you may want tomorrow. Vector enables dramatic cost reduction, novel data enrichment, and data security where you need it, not where is most convenient for your vendors.
How to use Vector Helm repository
You need to add this repository to your Helm repositories:
helm repo add vector https://helm.vector.dev
helm repo update
Requirements
Kubernetes: >=1.28.0-0
Quick start
By default, Vector runs as a StatefulSet in the "Aggregator" role. It can alternatively run as a Deployment for the "Stateless-Aggregator" role or a DaemonSet for the "Agent" role.
Installing the Vector chart
To install the chart with the release name <RELEASE_NAME> run:
helm install <RELEASE_NAME> vector/vector
Upgrading
From original charts
- Migrate from the
vector-agentchart - Migrate from the
vector-aggregatorchart
Uninstalling the chart
To uninstall/delete the <RELEASE_NAME> deployment:
helm delete <RELEASE_NAME>
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
- Using our
default-values.yamlconfiguration file as a reference, create your ownvalues.yaml. - Upgrade the Vector chart with your new
values.yamlfile:
helm upgrade -f values.yaml <RELEASE_NAME> vector/vector
Vector recommends that your values.yaml only contain values that need to be overridden, as it allows a smoother experience when upgrading chart versions.
See the configuration options section to discover all possibilities offered by the Vector chart.
Running on control plane nodes
Depending on your Kubernetes distribution, you may need to configure tolerations to run Vector on nodes acting as the control plane.
For example to run Vector on Openshift control plane nodes you can set:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/infra
operator: Exists
Or for RKE control plane nodes set:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/controlplane
operator: Exists
- effect: NoExecute
key: node-role.kubernetes.io/etcd
operator: Exists
Using template syntax in customConfig
As Vector's template syntax shares the same syntax as Helm templates, explicit handling is required
if you are using Vector's template syntax in the customConfig option. To avoid Helm templating configuration intended for Vector you can supply configuration like so:
customConfig:
#...
sinks:
loki:
#...
labels:
foo: bar
host: |-
{{ print "{{ host }}" }}
source: |-
{{ print "{{ source_type }}" }}
API exposure and health probes
When using chart-managed default configuration (without customConfig and existingConfigMaps),
Vector's API listens on 0.0.0.0:8686, and the chart applies a default readiness probe
(grpc on port 8686).
If you use customConfig, ensure api.enabled/api.address and probe settings are aligned
with your configuration.
As this API can expose internal state, restrict reachability with Kubernetes controls such as
NetworkPolicy and carefully scoped Service/Ingress exposure.
All configuration options
The following table lists the configurable parameters of the Vector chart and their default values. Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
helm install <RELEASE_NAME> \
vector/vector \
--set role=Agent
Values
Vector values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Configure affinity rules for Vector Pods. |
| args | list | ["--config-dir","/etc/vector/"] | Override Vector's default arguments. |
| autoscaling.annotations | object | {} | Annotations to add to Vector's HPA. |
| autoscaling.behavior | object | {} | Configure separate scale-up and scale-down behaviors. |
| autoscaling.customMetric | list | [] | Target a custom metric for autoscaling. |
| autoscaling.enabled | bool | false | Create a HorizontalPodAutoscaler for Vector. Valid for the "Aggregator" and "Stateless-Aggregator" roles. |
| autoscaling.external | bool | false | Set to true if using an external autoscaler like KEDA. Valid for the "Aggregator and "Stateless-Aggregator" roles. |
| autoscaling.maxReplicas | int | 10 | Maximum replicas for Vector's HPA. |
| autoscaling.minReplicas | int | 1 | Minimum replicas for Vector's HPA. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization for Vector's HPA. |
| autoscaling.targetMemoryUtilizationPercentage | int | nil | Target memory utilization for Vector's HPA. |
| command | list | [] | Override Vector's default command. |
| commonLabels | object | {} | Add additional labels to all created resources. |
| containerPorts | list | [] | Manually define Vector's containerPorts, overriding automated generation of containerPorts. |
| customConfig | object | {} | Override Vector's default configs, if used all options need to be specified. This section supports using helm templates to populate dynamic values. See Vector's configuration documentation for all options. |
| daemonSet.apiVersion | string | "" | Override the DaemonSet apiVersion. Valid for the "Agent" role. |
| dataDir | string | "" | Specify the path for Vector's data, only used when existingConfigMaps are used. |
| defaultVolumeMounts | list | See values.yaml | Default volume mounts. Corresponds to volumes. |
| defaultVolumes | list | See values.yaml | Default volumes that are mounted into pods. In most cases, these should not be changed. Use extraVolumes/extraVolumeMounts for additional custom volumes. |
| dnsConfig | object | {} | Specify the dnsConfig options for Vector Pods. |
| dnsPolicy | string | "ClusterFirst" | Specify the dnsPolicy for Vector Pods. |
| env | list | [] | Set environment variables for Vector containers. |
| envFrom | list | [] | Define environment variables from Secrets or ConfigMaps. |
| existingConfigMaps | list | [] | List of existing ConfigMaps for Vector's configuration instead of creating a new one. Requires dataDir to be set. Additionally, containerPorts, service.ports, and serviceHeadless.ports should be specified based on your supplied configuration. If set, this parameter takes precedence over customConfig and the chart's default configs. |
| extraContainers | list | [] | Extra Containers to be added to the Vector Pods. This also supports template content, which will eventually be converted to yaml. |
| extraObjects | list | [] | Create extra manifests via values. Would be passed through tpl for templating. |
| extraVolumeMounts | list | [] | Additional Volume to mount into Vector Containers. |
| extraVolumes | list | [] | Additional Volumes to use with Vector Pods. |
| fullnameOverride | string | "" | Override the full name of resources. |
| hostAliases | list | [] | |
| image.base | string | "" | The base distribution to use for vector. If set, then the base in appVersion will be replaced with this base alongside the version. For example: with a base of debian 0.38.0-distroless-libc becomes 0.38.0-debian |
| image.pullPolicy | string | "IfNotPresent" | The pullPolicy for Vector's image. |
| image.pullSecrets | list | [] | The imagePullSecrets to reference for the Vector Pods. |
| image.repository | string | "docker.io/timberio/vector" | Override default registry and name for Vector's image. |
| image.sha | string | "" | The SHA to use for Vector's image. |
| image.tag | string | Derived from the Chart's appVersion. | The tag to use for Vector's image. |
| ingress.annotations | object | {} | Set annotations on the Ingress. |
| ingress.className | string | "" | Specify the ingressClassName, requires Kubernetes >= 1.18 |
| ingress.enabled | bool | false | If true, create and use an Ingress resource. |
| ingress.hosts | list | [] | Configure the hosts and paths for the Ingress. |
| ingress.tls | list | [] | Configure TLS for the Ingress. |
| initContainers | list | [] | Init Containers to be added to the Vector Pods. This also supports template content, which will eventually be converted to yaml. |
| lifecycle | object | {} | Set lifecycle hooks for Vector containers. |
| livenessProbe | object | {} | Override default liveness probe settings. If customConfig is used, requires customConfig.api.enabled to be set to true. grpc is recommended once the cluster is on Vector 0.55+; the httpGet /health probe is kept for backwards compatibility with older Vector versions. |
| logLevel | string | "info" | |
| minReadySeconds | int | 0 | Specify the minimum number of seconds a newly spun up pod should wait to pass healthchecks before it is considered available. |
| nameOverride | string | "" | Override the name of resources. |
| nodeSelector | object | {} | Configure a nodeSelector for Vector Pods. |
| persistence.accessModes | list | ["ReadWriteOnce"] | Specifies the accessModes for PersistentVolumeClaims. Valid for the "Aggregator" role. |
| persistence.annotations | object | {} | Set annotations on the PersistentVolumeClaims created by the StatefulSet. |
| persistence.enabled | bool | false | If true, create and use PersistentVolumeClaims. |
| persistence.existingClaim | string | "" | Name of an existing PersistentVolumeClaim to use. Valid for the "Aggregator" role. |
| persistence.finalizers | list | ["kubernetes.io/pvc-protection"] | Specifies the finalizers of PersistentVolumeClaims. Valid for the "Aggregator" role. |
| persistence.hostPath.enabled | bool | true | If true, use hostPath persistence. Valid for the "Agent" role, if it's disabled the "Agent" role will use emptyDir. |
| persistence.hostPath.path | string | "/var/lib/vector" | Override path used for hostPath persistence. Valid for the "Agent" role, persistence is always used for the "Agent" role. |
| persistence.retentionPolicy | object | {} | Configure a PersistentVolumeClaimRetentionPolicy for Vector's PersistentVolumeClaims. Valid for the "Aggregator" role. |
| persistence.selectors | object | {} | Specifies the selectors for PersistentVolumeClaims. Valid for the "Aggregator" role. |
| persistence.size | string | "10Gi" | Specifies the size of PersistentVolumeClaims. Valid for the "Aggregator" role. |
| persistence.volumeAttributesClassName | string | nil | Specifies the volumeAttributesClassName for PersistentVolumeClaims. Valid for the "Aggregator" role. |
| podAnnotations | object | {} | Set annotations on Vector Pods. Values are rendered with tpl, so templated strings (e.g. a checksum of an externally managed ConfigMap) are supported. |
| podDisruptionBudget.enabled | bool | false | Enable a PodDisruptionBudget for Vector. |
| podDisruptionBudget.maxUnavailable | int | nil | The number of Pods that can be unavailable after an eviction. |
| podDisruptionBudget.minAvailable | int | 1 | The number of Pods that must still be available after an eviction. |
| podHostNetwork | bool | false | Configure hostNetwork on Vector Pods. |
| podLabels | object | {"vector.dev/exclude":"true"} | Set labels on Vector Pods. |
| podManagementPolicy | string | "OrderedReady" | Specify the podManagementPolicy for the StatefulSet. Valid for the "Aggregator" role. |
| podMonitor.additionalLabels | object | {} | Adds additional labels to the PodMonitor. |
| podMonitor.enabled | bool | false | If true, create a PodMonitor for Vector. |
| podMonitor.honorLabels | bool | false | If true, honor_labels is set to true in the scrape config. |
| podMonitor.honorTimestamps | bool | true | If true, honor_timestamps is set to true |
Deploy vector with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vector on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvector is pinned at v0.62.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply