vector

by joaquinito2051

Helm chartv0.62.1App 0.62.0-distroless-libcMPL-2.0

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-agent chart
  • Migrate from the vector-aggregator chart

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

  1. Using our default-values.yaml configuration file as a reference, create your own values.yaml.
  2. Upgrade the Vector chart with your new values.yaml file:
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

KeyTypeDefaultDescription
affinityobject{}Configure affinity rules for Vector Pods.
argslist["--config-dir","/etc/vector/"]Override Vector's default arguments.
autoscaling.annotationsobject{}Annotations to add to Vector's HPA.
autoscaling.behaviorobject{}Configure separate scale-up and scale-down behaviors.
autoscaling.customMetriclist[]Target a custom metric for autoscaling.
autoscaling.enabledboolfalseCreate a HorizontalPodAutoscaler for Vector. Valid for the "Aggregator" and "Stateless-Aggregator" roles.
autoscaling.externalboolfalseSet to true if using an external autoscaler like KEDA. Valid for the "Aggregator and "Stateless-Aggregator" roles.
autoscaling.maxReplicasint10Maximum replicas for Vector's HPA.
autoscaling.minReplicasint1Minimum replicas for Vector's HPA.
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization for Vector's HPA.
autoscaling.targetMemoryUtilizationPercentageintnilTarget memory utilization for Vector's HPA.
commandlist[]Override Vector's default command.
commonLabelsobject{}Add additional labels to all created resources.
containerPortslist[]Manually define Vector's containerPorts, overriding automated generation of containerPorts.
customConfigobject{}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.apiVersionstring""Override the DaemonSet apiVersion. Valid for the "Agent" role.
dataDirstring""Specify the path for Vector's data, only used when existingConfigMaps are used.
defaultVolumeMountslistSee values.yamlDefault volume mounts. Corresponds to volumes.
defaultVolumeslistSee values.yamlDefault volumes that are mounted into pods. In most cases, these should not be changed. Use extraVolumes/extraVolumeMounts for additional custom volumes.
dnsConfigobject{}Specify the dnsConfig options for Vector Pods.
dnsPolicystring"ClusterFirst"Specify the dnsPolicy for Vector Pods.
envlist[]Set environment variables for Vector containers.
envFromlist[]Define environment variables from Secrets or ConfigMaps.
existingConfigMapslist[]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.
extraContainerslist[]Extra Containers to be added to the Vector Pods. This also supports template content, which will eventually be converted to yaml.
extraObjectslist[]Create extra manifests via values. Would be passed through tpl for templating.
extraVolumeMountslist[]Additional Volume to mount into Vector Containers.
extraVolumeslist[]Additional Volumes to use with Vector Pods.
fullnameOverridestring""Override the full name of resources.
hostAliaseslist[]
image.basestring""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.pullPolicystring"IfNotPresent"The pullPolicy for Vector's image.
image.pullSecretslist[]The imagePullSecrets to reference for the Vector Pods.
image.repositorystring"docker.io/timberio/vector"Override default registry and name for Vector's image.
image.shastring""The SHA to use for Vector's image.
image.tagstringDerived from the Chart's appVersion.The tag to use for Vector's image.
ingress.annotationsobject{}Set annotations on the Ingress.
ingress.classNamestring""Specify the ingressClassName, requires Kubernetes >= 1.18
ingress.enabledboolfalseIf true, create and use an Ingress resource.
ingress.hostslist[]Configure the hosts and paths for the Ingress.
ingress.tlslist[]Configure TLS for the Ingress.
initContainerslist[]Init Containers to be added to the Vector Pods. This also supports template content, which will eventually be converted to yaml.
lifecycleobject{}Set lifecycle hooks for Vector containers.
livenessProbeobject{}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.
logLevelstring"info"
minReadySecondsint0Specify the minimum number of seconds a newly spun up pod should wait to pass healthchecks before it is considered available.
nameOverridestring""Override the name of resources.
nodeSelectorobject{}Configure a nodeSelector for Vector Pods.
persistence.accessModeslist["ReadWriteOnce"]Specifies the accessModes for PersistentVolumeClaims. Valid for the "Aggregator" role.
persistence.annotationsobject{}Set annotations on the PersistentVolumeClaims created by the StatefulSet.
persistence.enabledboolfalseIf true, create and use PersistentVolumeClaims.
persistence.existingClaimstring""Name of an existing PersistentVolumeClaim to use. Valid for the "Aggregator" role.
persistence.finalizerslist["kubernetes.io/pvc-protection"]Specifies the finalizers of PersistentVolumeClaims. Valid for the "Aggregator" role.
persistence.hostPath.enabledbooltrueIf true, use hostPath persistence. Valid for the "Agent" role, if it's disabled the "Agent" role will use emptyDir.
persistence.hostPath.pathstring"/var/lib/vector"Override path used for hostPath persistence. Valid for the "Agent" role, persistence is always used for the "Agent" role.
persistence.retentionPolicyobject{}Configure a PersistentVolumeClaimRetentionPolicy for Vector's PersistentVolumeClaims. Valid for the "Aggregator" role.
persistence.selectorsobject{}Specifies the selectors for PersistentVolumeClaims. Valid for the "Aggregator" role.
persistence.sizestring"10Gi"Specifies the size of PersistentVolumeClaims. Valid for the "Aggregator" role.
persistence.volumeAttributesClassNamestringnilSpecifies the volumeAttributesClassName for PersistentVolumeClaims. Valid for the "Aggregator" role.
podAnnotationsobject{}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.enabledboolfalseEnable a PodDisruptionBudget for Vector.
podDisruptionBudget.maxUnavailableintnilThe number of Pods that can be unavailable after an eviction.
podDisruptionBudget.minAvailableint1The number of Pods that must still be available after an eviction.
podHostNetworkboolfalseConfigure hostNetwork on Vector Pods.
podLabelsobject{"vector.dev/exclude":"true"}Set labels on Vector Pods.
podManagementPolicystring"OrderedReady"Specify the podManagementPolicy for the StatefulSet. Valid for the "Aggregator" role.
podMonitor.additionalLabelsobject{}Adds additional labels to the PodMonitor.
podMonitor.enabledboolfalseIf true, create a PodMonitor for Vector.
podMonitor.honorLabelsboolfalseIf true, honor_labels is set to true in the scrape config.
podMonitor.honorTimestampsbooltrueIf 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartvector is pinned at v0.62.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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