tfy-logs

by TrueFoundry

Helm chartv0.1.22Verified publisher

Truefoundry Logs chart

About this chart

Truefoundry Logs

This Helm chart deploys a centralized logging solution for Truefoundry using VictoriaLogs as the backend storage and Vector as the log collection agent.

Overview

The tfy-logs chart provides:

  • Centralized log collection from all Kubernetes pods
  • Log storage with configurable retention period
  • Log parsing and structured storage
  • Efficient log querying capabilities

Architecture

The solution consists of two main components:

  1. VictoriaLogs Server: A high-performance, cost-effective log storage and search system
  2. Vector Agents: DaemonSet that collects logs from all nodes and forwards them to VictoriaLogs

Prerequisites

  • Kubernetes 1.30+
  • Helm 3.1.0+
  • PV provisioner support in the underlying infrastructure

Upgrade Notes

  • When upgrading the chart version, ensure that the timberio vector image has been pushed to public.ecr.aws/truefoundrycloud/timberio/vector:

Installation

Parameters

Global configuration

NameDescriptionValue
global.imagePullSecretsGlobal image pull secrets[]

Upstream VictoriaLogs configurations

NameDescriptionValue
victoria-logs-single.enabledEnable victoria-logs-singletrue
victoria-logs-single.global.image.registryImage registrytfy.jfrog.io/tfy-mirror
victoria-logs-single.server.image.registryImage registrytfy.jfrog.io/tfy-mirror
victoria-logs-single.server.retentionPeriodRetention period15d
victoria-logs-single.server.retentionMaxDiskUsagePercentMaximum disk usage percentage for retention85
victoria-logs-single.server.persistentVolume.sizePersistent volume size50Gi
victoria-logs-single.server.resourcesResources{}
victoria-logs-single.server.affinityAffinity{}
victoria-logs-single.server.tolerationsTolerations[]
victoria-logs-single.vector.resourcesResources{}
victoria-logs-single.vector.podPriorityClassNamePod priority class namesystem-node-critical
victoria-logs-single.vector.image.repositoryImage repositorypublic.ecr.aws/truefoundrycloud/timberio/vector
victoria-logs-single.vector.image.tagImage tagv0.52.0
victoria-logs-single.vector.enabledEnable vectortrue
victoria-logs-single.vector.podSecurityContextPod-level security context for Vector{}
victoria-logs-single.vector.securityContextContainer-level security context for Vector{}
victoria-logs-single.vector.affinityAffinity{}
victoria-logs-single.vector.tolerationsTolerations[]
victoria-logs-single.vector.nodeSelectorNode selector{}
victoria-logs-single.vector.customConfigCustom config{}

Windows Vector configurations

NameDescriptionValue
windowsVector.enabledEnable Windows Vector daemon set for Windows node log collectiontrue
windowsVector.labelsLabels to add to the Windows Vector pods{}
windowsVector.annotationsAnnotations to add to the Windows Vector pods{}
windowsVector.image.registryImage registrypublic.ecr.aws
windowsVector.image.repositoryImage repositorytruefoundrycloud/timberio/vector
windowsVector.image.tagImage tagv0.50.0
windowsVector.image.pullPolicyImage pull policyIfNotPresent
windowsVector.imagePullSecretsImage pull secrets for Windows Vector pods[]
windowsVector.envAdditional environment variables for Windows Vector pods[]
windowsVector.resourcesResources for Windows Vector pods{}
windowsVector.nodeSelectorNode selector{}
windowsVector.podPriorityClassNamePod priority class name for Windows Vector pods""
windowsVector.affinityAffinity configuration for Windows Vector pods{}
windowsVector.configMapNameName of the ConfigMap containing Vector config to mount on Windows Vector pods. Defaults to the ConfigMap created by the victoria-logs-single subchart (vector.customConfigName, vector-vl-config in v0.11.x; was vl-config in older versions).vector-vl-config
windowsVector.additionalVolumeMountsAdditional volume mounts for Windows Vector pods[]
windowsVector.additionalVolumesAdditional volumes for Windows Vector pods[]

resourceQuota Add a ResourceQuota to enable priority class in a namespace.

resourceQuota Add a ResourceQuota to enable priority class in a namespace.

NameDescriptionValue
resourceQuota.enabledCreate the ResourceQuota.true
resourceQuota.annotationsAnnotations to add to the ResourceQuota{}
resourceQuota.labelsLabels to add to the ResourceQuota{}
resourceQuota.priorityClassesPriorityClasses to enable.["system-node-critical"]
extraManifestsExtra manifests to deploy alongside the chart[]

Deploy tfy-logs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-logs 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 charttfy-logs is pinned at v0.1.22 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