backend
by zymtrace
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-valueswhen 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, andsymdbservices - ClickHouse: Only accessible from
ingestandwebservices
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
| Key | Type | Description |
|---|---|---|
| global.licenseKey | string | Your zymtrace license key |
| global.namePrefix | string | Prefix for all resource names |
| global.imageRegistry | string | Default registry for all images |
| global.appImageRegistry | string | Specific registry for zymtrace backend services |
| global.registry.requirePullSecret | bool | Whether to use image pull secrets |
| global.registry.username | string | Registry username |
| global.registry.password | string | Registry password |
| global.imagePullPolicy | string | Image pull policy |
| global.migrateServicesToHeadless | bool | Use pre-upgrade hooks for service migration |
| global.skipCapabilityCheck | bool | Skip API capability checks |
| global.skipDBMigrations | bool | Skip running database migrations |
| global.skipPostgresMigration | bool | Skip PostgreSQL migrations specifically |
| global.skipClickHouseMigration | bool | Skip ClickHouse migrations specifically |
| global.skipClickHouseRetention | bool | Leave 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
| Key | Type | Description |
|---|---|---|
| auth.type | string | Authentication type: "basic", "oidc", "local", or "none" |
| auth.info.displayName | string | Branding display name for login page |
| auth.info.pictureUri | string | Custom logo URI for login page |
| auth.serviceToken.enabled | bool | Enable service token authentication |
| auth.basic.username | string | Basic auth username |
| auth.basic.password | string | Basic auth password |
| auth.admin.email | string | Admin user email |
| auth.admin.password | string | Admin user password |
| auth.admin.roles | list | Admin user roles |
| auth.cookie.refreshMaxAgeSec | int | Cookie refresh max age in seconds |
| auth.cookie.secure | bool | Use secure cookies |
| auth.cookie.httpOnly | bool | Use HTTP-only cookies |
| auth.validation.issuers | list | List of possible token issuers |
| auth.validation.audiences | list | List of possible token audiences |
| auth.validation.keys.privateKey | string | Private key for token signing (PEM format) |
| auth.validation.keys.publicKey | string | Public key for token validation (PEM format) |
| auth.oidc.provider.clientId | string | OIDC client ID |
| auth.oidc.provider.clientSecret | string | OIDC client secret |
| auth.oidc.provider.issuerUri | string | OIDC issuer URL |
| auth.oidc.provider.redirectUri | string | OIDC redirect URI |
| auth.oidc.provider.scopes | list | OIDC scopes |
AI Assistant Configuration
| Key | Type | Description | Default |
|---|---|---|---|
| aiAssistant.enabled | bool | Enable AI Assistant features | false |
| aiAssistant.anthropic.apiKey | string | Anthropic Claude API key | - |
| aiAssistant.gemini.apiKey | string | Google Gemini API key | - |
| aiAssistant.openai.apiKey | string | OpenAI API key | - |
| aiAssistant.customLLM.url | string | Custom LLM endpoint URL (OpenAI-compatible) | - |
| aiAssistant.customLLM.apiKey | string | Custom LLM API key | - |
| aiAssistant.customLLM.models | string | Comma-separated list of available custom models | - |
| aiAssistant.requestSizeLimit | int | Maximum request size for AI queries (bytes) | 20971520 (20 MiB) |
| aiAssistant.sessionClearFreq | int | Session cleanup frequency (seconds) | 3600 (1 hour) |
| aiAssistant.mcpServers | list | MCP server configurations | See values.yaml |
For detailed AI Assistant configuration, see the AI Assistant documentation.
Global Symbolization
| Key | Type | Description |
|---|---|---|
| globalSymbolization.enabled | bool | Enable global symbolization service |
| globalSymbolization.config.bucketName | string | Global symbolization bucket name |
| globalSymbolization.config.accessKey | string | Global symbolization access key |
| globalSymbolization.config.secretKey | string | Global symbolization secret key |
| globalSymbolization.config.region | string | Global symbolization region |
| globalSymbolization.config.endpoint | string | Global symbolization endpoint |
ClickHouse Configuration
| Key | Type | Description |
|---|---|---|
| clickhouse.mode | string | Mode: "create" or "use_existing" |
| clickhouse.nodeSelector | object | Node selector for ClickHouse |
| clickhouse.tolerations | list | Tolerations for ClickHouse |
| clickhouse.affinity | object | Affinity rules for ClickHouse |
| clickhouse.retention | object | ClickHouse data retention applied by the migration job; see values.yaml for the schema |
| clickhouse.retention.apply | string | How retention ALTERs run: sync (default) waits and fails past distributed_ddl_task_timeout; async submits without waiting |
| clickhouse.retention.common.delete | object | Deletion rule for profiling data: { after-hours: N } or disabled |
| clickhouse.retention.recommendations.delete | object | Deletion rule for recommendations: { after-hours: N } or disabled |
| clickhouse.create.image.repository | string | ClickHouse image repository |
| clickhouse.create.image.tag | string | ClickHouse image tag |
| clickhouse.create.config.user | string | ClickHouse username |
| clickhouse.create.config.password | string | ClickHouse password |
| clickhouse.create.config.database | string | ClickHouse database prefix |
| clickhouse.create.service.http.port | int | ClickHouse HTTP port |
| clickhouse.create.service.native.port | int | ClickHouse native port |
| clickhouse.create.replicas | int | Number of ClickHouse replicas |
| clickhouse.create.resources | object | ClickHouse resource requests/limits |
| clickhouse.create.storage.type | string | Storage type: "persistent" or "empty_dir" |
| clickhouse.create.storage.size | string | Storage size |
| clickhouse.create.storage.className | string | Storage class name |
| clickhouse.create.storage.existing_pvc.pvcName | string | Name of existing PVC to use |
| clickhouse.create.storage.existing_pvc.subPath | string | Optional: subdirectory within PVC (useful for shared storage) |
| clickhouse.create.extraConfig | string | Extra 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.host | string | External ClickHouse URL (http://host:8123) |
| clickhouse.use_existing.user | string | External ClickHouse username |
| clickhouse.use_existing.password | string | External ClickHouse password |
| clickhouse.use_existing.database | string | External ClickHouse database prefix |
| clickhouse.use_existing.clusterName | string | ClickHouse cluster name for distributed setups |
| clickhouse.use_existing.autoCreateDBs | bool | Auto-create databases |
PostgreSQL Configuration
| Key | Type | Description |
|---|---|---|
| postgres.mode | string | Mode: "create", "use_existing", "aws_aurora", or "gcp_cloudsql" |
| postgres.nodeSelector | object | Node selector for PostgreSQL |
| postgres.tolerations | list | Tolerations for PostgreSQL |
| postgres.affinity | object | Affinity rules for PostgreSQL |
| postgres.create.image.repository | string | PostgreSQL |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbackend is pinned at v26.11.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