backend

by zymtrace

Helm chartv26.11.1App 26.11.1Verified publisher

Deploy zymtrace's self-hosted services

About this chart

Zymtrace Backend Chart

Deploy zymtrace's self-hosted backend services - a complete observability platform for CPU and GPU profiling.

Homepage: https://docs.zymtrace.com

Source Code

Documentation

For detailed configuration and usage instructions, see:

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • A metrics server installed in your cluster for HPA support
  • PV provisioner support in the underlying infrastructure (for persistent storage)
  • For Google Cloud SQL with IAM: GKE cluster with Workload Identity configured
  • For NetworkPolicies: A CNI that supports NetworkPolicy enforcement (Calico, Cilium, Weave Net, etc.)

⚠️ WARNING: Avoid Data Loss on Upgrades

When upgrading image tags, changing license keys, or any partial helm upgrade (without -f), you MUST include --reset-then-reuse-values (or --reuse-values) to preserve existing chart values.

Omitting these flags will reset all values to chart defaults, which can result in data loss or misconfigured deployments.

  • Use --reset-then-reuse-values when upgrading with --set (e.g. image tags, license keys)
  • Use -f <values-file> when doing a full deployment — no reuse flag needed in that case

Installation

Add the zymtrace Helm repository:

helm repo add zymtrace https://helm.zystem.io
helm repo update

To search for available versions:

helm search repo zymtrace --versions

Install with a values file

helm install backend zymtrace/backend \
  --namespace zymtrace \
  --create-namespace \
  -f backend-values.yaml

Install without a values file (basic)

helm install backend zymtrace/backend \
  --namespace zymtrace \
  --create-namespace \
  --set global.licenseKey="your-license-key"

Install with external databases

helm install backend zymtrace/backend \
  --namespace zymtrace \
  --create-namespace \
  --set clickhouse.mode="use_existing" \
  --set clickhouse.use_existing.host="https://clickhouse.example.com:8443" \
  --set clickhouse.use_existing.user="your-user" \
  --set clickhouse.use_existing.password="your-password" \
  --set postgres.mode="use_existing" \
  --set postgres.use_existing.host="postgres.example.com:5432" \
  --set postgres.use_existing.user="your-user" \
  --set postgres.use_existing.password="your-password"

Upgrading

Upgrade image tag only

helm upgrade backend zymtrace/backend \
  --namespace zymtrace \
  --reset-then-reuse-values \
  --set services.common.imageTag="NEW_VERSION" \
  --debug

Upgrade license key only

helm upgrade backend zymtrace/backend \
  --namespace zymtrace \
  --reset-then-reuse-values \
  --set global.licenseKey="NEW_LICENSE_KEY" \
  --debug

Upgrade with a values file (full config)

helm upgrade --install backend zymtrace/backend \
  --namespace zymtrace \
  --create-namespace \
  -f backend-values.yaml \
  --debug

Key Features

  • Comprehensive Node Placement Control: Configure nodeSelector, tolerations, and affinity for individual services and databases
  • Advanced Scheduling: Pod affinity/anti-affinity, node affinity, HPA integration
  • Enhanced Security: NetworkPolicies for fine-grained database access control
  • Multiple Database Modes: Create in-cluster or connect to existing ClickHouse, PostgreSQL, and object storage
  • Authentication Options: OIDC (Google, Okta, Auth0, Azure AD), or local auth

Configuration Examples (values file)

See the Values section for all available options.

Basic with Ingress

global:
  licenseKey: "your-license-key"

ingress:
  enabled: true
  className: "nginx"
  hosts:
    gateway:
      enabled: true
      host: "zymtrace.company.com"
  tls:
    - secretName: zymtrace-tls
      hosts:
        - zymtrace.company.com

With External Databases

clickhouse:
  mode: "use_existing"
  use_existing:
    host: "https://clickhouse.example.com:8443"
    user: "your-username"
    password: "your-password"

postgres:
  mode: "use_existing"
  use_existing:
    host: "postgres.example.com:5432"
    user: "your-username"
    password: "your-password"
    secure: true

With Google Cloud SQL

postgres:
  mode: "gcp_cloudsql"
  gcp_cloudsql:
    instance: "my-project:us-central1:zymtrace-pg"
    user: "[email protected]"
    workloadIdentity:
      enabled: true
    serviceAccount: "zymtrace-cloudsql-sa"

With External Object Storage

# AWS S3
storage:
  mode: "use_existing"
  use_existing:
    type: "s3"
    s3:
      region: "us-west-2"
      accessKey: "your-access-key"
      secretKey: "your-secret-key"

# Or Google Cloud Storage
storage:
  mode: "use_existing"
  use_existing:
    type: "gcs"
    gcs:
      accessKey: "your-hmac-access-key"
      secretKey: "your-hmac-secret-key"

With AI Assistant

aiAssistant:
  enabled: true

  # Configure one or more AI providers
  anthropic:
    apiKey: "sk-ant-api03-..."

  gemini:
    apiKey: "AIzaSy..."

  openai:
    apiKey: "sk-proj-..."

  # Optional: Custom LLM endpoint (e.g., Groq, Together AI, self-hosted)
  customLLM:
    url: "https://your-llm-endpoint.com/v1/chat/completions"
    apiKey: "your-custom-api-key"
    models: "model-1,model-2"

  # Optional: Advanced configuration
  requestSizeLimit: 20971520  # 20 MiB
  sessionClearFreq: 3600  # 1 hour

Network Security with NetworkPolicies

NetworkPolicies are enabled by default and restrict database access:

  • PostgreSQL: Only accessible from migrate, identity, and symdb services
  • ClickHouse: Only accessible from ingest and web services

To disable (e.g., for Flannel clusters):

services:
  activateNetworkPolicies: false

Horizontal Pod Autoscaling (HPA)

Enable HPA for automatic scaling based on CPU/memory utilization:

services:
  common:
    hpa:
      enabled: true
      minReplicas: 1
      maxReplicas: 10
      targetCPUUtilizationPercentage: 60
      targetMemoryUtilizationPercentage: 70

Values

Global Configuration

KeyTypeDescription
global.licenseKeystringYour zymtrace license key
global.namePrefixstringPrefix for all resource names
global.imageRegistrystringDefault registry for all images
global.appImageRegistrystringSpecific registry for zymtrace backend services
global.registry.requirePullSecretboolWhether to use image pull secrets
global.registry.usernamestringRegistry username
global.registry.passwordstringRegistry password
global.imagePullPolicystringImage pull policy
global.migrateServicesToHeadlessboolUse pre-upgrade hooks for service migration
global.skipCapabilityCheckboolSkip API capability checks
global.skipDBMigrationsboolSkip running database migrations
global.skipPostgresMigrationboolSkip PostgreSQL migrations specifically
global.skipClickHouseMigrationboolSkip ClickHouse migrations specifically
global.skipClickHouseRetentionboolLeave ClickHouse table TTLs and retention settings untouched during migrations; clickhouse.retention is ignored. Needs zymtrace 26.10.1 or later; older images fail the migrate job

Authentication

KeyTypeDescription
auth.typestringAuthentication type: "basic", "oidc", "local", or "none"
auth.info.displayNamestringBranding display name for login page
auth.info.pictureUristringCustom logo URI for login page
auth.serviceToken.enabledboolEnable service token authentication
auth.basic.usernamestringBasic auth username
auth.basic.passwordstringBasic auth password
auth.admin.emailstringAdmin user email
auth.admin.passwordstringAdmin user password
auth.admin.roleslistAdmin user roles
auth.cookie.refreshMaxAgeSecintCookie refresh max age in seconds
auth.cookie.secureboolUse secure cookies
auth.cookie.httpOnlyboolUse HTTP-only cookies
auth.validation.issuerslistList of possible token issuers
auth.validation.audienceslistList of possible token audiences
auth.validation.keys.privateKeystringPrivate key for token signing (PEM format)
auth.validation.keys.publicKeystringPublic key for token validation (PEM format)
auth.oidc.provider.clientIdstringOIDC client ID
auth.oidc.provider.clientSecretstringOIDC client secret
auth.oidc.provider.issuerUristringOIDC issuer URL
auth.oidc.provider.redirectUristringOIDC redirect URI
auth.oidc.provider.scopeslistOIDC scopes

AI Assistant Configuration

KeyTypeDescriptionDefault
aiAssistant.enabledboolEnable AI Assistant featuresfalse
aiAssistant.anthropic.apiKeystringAnthropic Claude API key-
aiAssistant.gemini.apiKeystringGoogle Gemini API key-
aiAssistant.openai.apiKeystringOpenAI API key-
aiAssistant.customLLM.urlstringCustom LLM endpoint URL (OpenAI-compatible)-
aiAssistant.customLLM.apiKeystringCustom LLM API key-
aiAssistant.customLLM.modelsstringComma-separated list of available custom models-
aiAssistant.requestSizeLimitintMaximum request size for AI queries (bytes)20971520 (20 MiB)
aiAssistant.sessionClearFreqintSession cleanup frequency (seconds)3600 (1 hour)
aiAssistant.mcpServerslistMCP server configurationsSee values.yaml

For detailed AI Assistant configuration, see the AI Assistant documentation.

Global Symbolization

KeyTypeDescription
globalSymbolization.enabledboolEnable global symbolization service
globalSymbolization.config.bucketNamestringGlobal symbolization bucket name
globalSymbolization.config.accessKeystringGlobal symbolization access key
globalSymbolization.config.secretKeystringGlobal symbolization secret key
globalSymbolization.config.regionstringGlobal symbolization region
globalSymbolization.config.endpointstringGlobal symbolization endpoint

ClickHouse Configuration

KeyTypeDescription
clickhouse.modestringMode: "create" or "use_existing"
clickhouse.nodeSelectorobjectNode selector for ClickHouse
clickhouse.tolerationslistTolerations for ClickHouse
clickhouse.affinityobjectAffinity rules for ClickHouse
clickhouse.retentionobjectClickHouse data retention applied by the migration job; see values.yaml for the schema
clickhouse.retention.applystringHow retention ALTERs run: sync (default) waits and fails past distributed_ddl_task_timeout; async submits without waiting
clickhouse.retention.common.deleteobjectDeletion rule for profiling data: { after-hours: N } or disabled
clickhouse.retention.recommendations.deleteobjectDeletion rule for recommendations: { after-hours: N } or disabled
clickhouse.create.image.repositorystringClickHouse image repository
clickhouse.create.image.tagstringClickHouse image tag
clickhouse.create.config.userstringClickHouse username
clickhouse.create.config.passwordstringClickHouse password
clickhouse.create.config.databasestringClickHouse database prefix
clickhouse.create.service.http.portintClickHouse HTTP port
clickhouse.create.service.native.portintClickHouse native port
clickhouse.create.replicasintNumber of ClickHouse replicas
clickhouse.create.resourcesobjectClickHouse resource requests/limits
clickhouse.create.storage.typestringStorage type: "persistent" or "empty_dir"
clickhouse.create.storage.sizestringStorage size
clickhouse.create.storage.classNamestringStorage class name
clickhouse.create.storage.existing_pvc.pvcNamestringName of existing PVC to use
clickhouse.create.storage.existing_pvc.subPathstringOptional: subdirectory within PVC (useful for shared storage)
clickhouse.create.extraConfigstringExtra ClickHouse server config XML, mounted as config.d/extra-config.xml; changing it restarts the pod. See values.yaml for a merge-pool example and its constraints
clickhouse.use_existing.hoststringExternal ClickHouse URL (http://host:8123)
clickhouse.use_existing.userstringExternal ClickHouse username
clickhouse.use_existing.passwordstringExternal ClickHouse password
clickhouse.use_existing.databasestringExternal ClickHouse database prefix
clickhouse.use_existing.clusterNamestringClickHouse cluster name for distributed setups
clickhouse.use_existing.autoCreateDBsboolAuto-create databases

PostgreSQL Configuration

KeyTypeDescription
postgres.modestringMode: "create", "use_existing", "aws_aurora", or "gcp_cloudsql"
postgres.nodeSelectorobjectNode selector for PostgreSQL
postgres.tolerationslistTolerations for PostgreSQL
postgres.affinityobjectAffinity rules for PostgreSQL
postgres.create.image.repositorystringPostgreSQL

Deploy backend with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has backend 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 chartbackend is pinned at v26.11.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