retriever-10x

by log10x

Helm chartv1.0.26App 1.1.183Verified publisher

Official Log10x helm chart for SQS-based Retriever Quarkus deployment with optional Ingress support

About this chart

Log10x Retriever Helm Chart

Official Helm chart for deploying SQS-based Log10x pipeline streaming clusters on Kubernetes.

Overview

This chart deploys one or more cluster deployments with specific roles for processing tasks. Each cluster can handle one or more roles:

  • Index: Process indexing requests from SQS
  • Query: Process query requests and generate sub-queries
  • Stream: Execute stream tasks from SQS and forward results to configured destinations

Stream workers automatically include a fluent-bit sidecar for log forwarding to destinations like S3, CloudWatch, Elasticsearch, Splunk, Datadog, or Azure Monitor.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • AWS SQS queues (recommended: use terraform-aws-tenx-retriever-infra)
  • Log10x API key, or nothing, to run on the engine's built-in evaluation license
  • AWS credentials configured (via IRSA or service account annotations)

On Azure, substitute Azure Storage Queues and Blob containers and see Azure Blob Storage.

Quick Start

Basic Installation (Single All-in-One Cluster)

helm install my-retriever log10x/retriever-10x \
  --version 1.0.26 \
  --set log10xApiKey="your-api-key" \
  --set indexQueueUrl="https://sqs.us-west-2.amazonaws.com/.../index-queue" \
  --set queryQueueUrl="https://sqs.us-west-2.amazonaws.com/.../query-queue" \
  --set subQueryQueueUrl="https://sqs.us-west-2.amazonaws.com/.../subquery-queue" \
  --set streamQueueUrl="https://sqs.us-west-2.amazonaws.com/.../stream-queue"

Production Installation (Multiple Clusters)

Create a values.yaml:

log10xApiKey: "your-api-key"

# Global queue URLs
indexQueueUrl: "https://sqs.us-west-2.amazonaws.com/.../index-queue"
queryQueueUrl: "https://sqs.us-west-2.amazonaws.com/.../query-queue"
subQueryQueueUrl: "https://sqs.us-west-2.amazonaws.com/.../subquery-queue"
streamQueueUrl: "https://sqs.us-west-2.amazonaws.com/.../stream-queue"

# S3 bucket configuration
inputBucket: "my-bucket"
indexBucket: "my-bucket/indexed/"

# Service account for AWS IRSA
serviceAccount:
  create: true
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::ACCOUNT:role/tenx-retriever-role

clusters:
  # Dedicated indexing cluster
  - name: indexer
    roles: ["index"]
    replicaCount: 2
    maxParallelRequests: 5
    resources:
      requests:
        cpu: 2000m
        memory: 4Gi
    autoscaling:
      enabled: true
      minReplicas: 2
      maxReplicas: 10

  # Query processing cluster
  - name: query-handler
    roles: ["query"]
    replicaCount: 5
    maxParallelRequests: 20
    resources:
      requests:
        cpu: 1000m
        memory: 2Gi

  # Stream execution cluster with fluent-bit sidecar
  - name: stream-worker
    roles: ["stream"]
    replicaCount: 10
    maxParallelRequests: 15
    resources:
      requests:
        cpu: 1000m
        memory: 2Gi

# Fluent-bit configuration for stream workers
fluentBit:
  output:
    type: s3  # Options: stdout, s3, cloudwatch, elasticsearch, splunk, datadog, azure
    config:
      s3:
        bucket: my-logs-bucket
        region: us-west-2

Install:

helm install my-retriever log10x/retriever-10x --version 1.0.26 -f values.yaml

Key Configuration

Global Settings

ParameterDescriptionRequired
log10xApiKeyLog10x API key. Leave it empty and name no apiKeySecret.existingSecret to run on the engine's built-in evaluation license: the chart then creates no Secret and sets no TENX_API_KEY.No
indexQueueUrlSQS queue URL for index operationsFor index role
queryQueueUrlSQS queue URL for query operationsFor query role
subQueryQueueUrlSQS queue URL for sub-query operationsFor query role
streamQueueUrlSQS queue URL for stream operationsFor stream role
inputBucketS3 bucket for input dataRecommended
indexBucketS3 bucket path for indexed resultsRecommended
queryLogGroupCloudWatch Logs log group for query event loggingRecommended

Cluster Settings

ParameterDescriptionDefault
clusters[].nameCluster nameRequired
clusters[].rolesArray: ["index"], ["query"], ["stream"], or combinationsRequired
clusters[].replicaCountNumber of pod replicas1
clusters[].maxParallelRequestsMax concurrent tasks per pod10
clusters[].extraEnvAdditional environment variables for this cluster[]
clusters[].extraVolumesAdditional volumes to mount (PVC, ConfigMap, Secret, etc.)[]
clusters[].extraVolumeMountsMount paths for extraVolumes[]
clusters[].resourcesCPU/Memory requests and limits{}
clusters[].autoscaling.enabledEnable HPAfalse

Fluent-bit Configuration (Stream Workers Only)

Stream workers automatically deploy a fluent-bit sidecar for log forwarding.

ParameterDescriptionDefault
fluentBit.output.typeOutput destination: stdout, s3, cloudwatch, elasticsearch, splunk, datadog, azurestdout
fluentBit.output.config.s3.bucketS3 bucket name (for S3 output)""
fluentBit.output.config.cloudwatch.logGroupNameCloudWatch log group (for CloudWatch output)""
fluentBit.output.config.elasticsearch.hostElasticsearch host (for ES output)""
fluentBit.output.config.splunk.hostSplunk HEC endpoint (for Splunk output)""
fluentBit.output.config.datadog.apiKeyDatadog API key (for Datadog output)""
fluentBit.output.config.azure.streamNameAzure Monitor: BARE table name, e.g. Tenx_CL (the azure_logs_ingestion plugin derives the Custom-<table> DCR stream)""
fluentBit.output.config.azure.dceUrl / .dcrIdAzure Monitor Data Collection Endpoint URL / immutable DCR id""
fluentBit.output.config.azure.tenantId / .clientId / .clientSecretEntra app credentials (clientSecret via secret → AZURE_CLIENT_SECRET)""
fluentBit.bufferStorageSizeMax buffer disk space1Gi

Authentication:

  • S3/CloudWatch: Uses IRSA (configure via serviceAccount.annotations)
  • Elasticsearch/Splunk/Datadog/Azure: Uses Kubernetes secrets (provide credentials via --set-string; Azure uses config.azure.clientSecret)

Example with CloudWatch:

fluentBit:
  output:
    type: cloudwatch
    config:
      cloudwatch:
        region: us-west-2
        logGroupName: /aws/eks/my-retriever-logs
        logStreamPrefix: stream-

Scheduled Queries

The chart supports running scheduled queries as Kubernetes CronJobs. Each CronJob sends predefined query messages to the query SQS queue on a specified schedule.

Use cases:

  • Recurring error reports (hourly, daily)
  • Scheduled monitoring checks
  • Automated data exports
  • Periodic audit queries

Configuration:

# Enable scheduled queries (default: true)
scheduledQueries:
  enabled: true  # Set to false to disable all scheduled queries
  jobs:
    - name: hourly-errors
      schedule: "0 * * * *"  # Every hour at minute 0 (UTC)
      queries:
        - name: "error-logs"
          from: 'now("-1h")'
          to: 'now()'
          search: 'severity_level=="ERROR"'
          # Optional fields (10x config provides defaults):
          # processingTime: 'parseDuration("5m")'
          # resultSize: 'parseBytes("100MB")'

    - name: daily-summary
      schedule: "0 0 * * *"  # Daily at midnight UTC
      suspend: false  # Can be set to true to temporarily disable this specific job
      queries:
        - name: "daily-errors"
          from: 'now("-24h")'
          to: 'now()'
          search: 'severity_level=="ERROR"'
        - name: "daily-warnings"
          from: 'now("-24h")'
          to: 'now()'
          search: 'severity_level=="WARN"'

Disabling scheduled queries:

# Option 1: Disable all scheduled queries with enabled flag
scheduledQueries:
  enabled: false

# Option 2: Enable but provide no jobs
scheduledQueries:
  enabled: true
  jobs: []

Expression Syntax:

Queries use Log10x YAML-style configuration expressions that are parsed by the query server:

  • Time: now() - current time, now("-1h") - 1 hour ago, now("-24h") - 24 hours ago, now("-7d") - 7 days ago
  • Duration: parseDuration("5m") - 5 minutes, supports: ms, s, m, h
  • Bytes: parseBytes("100MB") - size in bytes, supports: B, KB, MB, GB

Default Values:

The Log10x query server automatically applies defaults from your pipeline configuration for any fields not explicitly specified in the query. This means you only need to specify from, to, and optionally search or other query-specific fields.

Important Notes:

  • Timezone: All cron schedules run in UTC
  • Multiple queries per job: Each job can define multiple queries that are sent sequentially
  • IAM permissions: CronJobs use the same service account as retriever pods. The IRSA role that grants sqs:ReceiveMessage for query workers automatically provides sqs:SendMessage permission needed by CronJobs
  • Required fields per query: Only from and to are required - the query server applies configured defaults for all other fields

Monitoring scheduled queries:

# List all CronJobs
kubectl get cronjobs -l component=scheduled-query

# View recent job executions
kubectl get jobs -l component=scheduled-query

# Check logs for a specific job
kubectl logs job/<job-name>

# Manually trigger a scheduled query (replace <job-name> with the name from scheduledQueries.jobs[].name)
kubectl create job --from=cronjob/<release>-retriever-10x-<job-name> manual-run

Azure Blob Storage

Set storage.provider: azure to run against Azure Blob Storage and Azure Storage Queues instead of S3 and SQS. The S3 and SQS keys are ignored; containers and queues come from storage.azure. The default, aws, is unchanged.

Provisioning Script

scripts/azure/provision-retriever.sh creates the resource group, the storage account, the input and index containers, the four Storage Queues, the managed identity and its role assignments, the Event Grid subscription that feeds the index queue, an AKS cluster with the OIDC issuer and workload identity enabled, and the federated credential that binds the identity to the release service account. It then writes the values file that installs against all of it. Re-running converges on the same state; --destroy deletes the resource group.

bash scripts/azure/provision-retriever.sh \
  --resource-group tenx-retriever --location eastus --account tenxlogs \
  --create-aks tenx-aks --namespace tenx --release retriever \
  --values-out ./values/azure-values.yaml

Run it through bash. helm package writes every file in a chart tarball as mode 0644 whatever its mode in git, so the copy that comes out of helm pull --untar is not executable and ./provision-retriever.sh is refused with Permission denied.

The directory for --values-out does not have to exist; the script creates it. A path it cannot create or cannot write to is still refused.

--dry-run validates the arguments, creates that directory, prints what would be provisioned and stops without touching a single Azure resource.

Three settings the script pins, each of which costs a run when it is wrong:

Image tag. --image-tag defaults to 1.1.183, the chart's appVersion, and the emitted values file pins it as image.tag.

Chart version. The helm install the script prints carries --version 1.0.26, the version of the chart this script shipped inside, so the install matches the script rather than whatever is newest in the repository. CHART_VERSION in the script and version in Chart.yaml are kept in sync by hand.

Node size. --node-size defaults to Standard_D2s_v7, and AKS_NODE_SIZE overrides it. Subscriptions differ in which VM sizes they allow, and a refused size fails the whole cluster create with The VM size of <size> is not allowed in your subscription. When that happens the script prints the az vm list-skus query that lists the sizes this subscription and region do allow, next to the exact command to re-run. On the subscription this was proven against, Standard_D2s_v7, Standard_D4s_v7 and Standard_D4as_v7 were all accepted.

Operator roles. Owner on the subscription carries no data plane access to blobs and queues, so az storage blob upload --auth-mode login is refused even for the person who created the account. The script grants the signed in operator Storage Blob Data Contributor and Storage Queue Data Contributor on the account, alongside the managed identity the pods use. It handles both a user login and a service principal login. Pass --no-operator-roles to skip the grant, and pass --account-key on every data plane command instead.

Workload Identity (AKS)

Requires the workload identity webhook on the cluster, a user-assigned managed identity with Storage Blob Data Contributor and Storage Queue Data Contributor on the account, and a federated credential bound to the service account.

log10xApiKey: "your-api-key"

storage:
  provider: azure
  azure:
    account: tenxlogs
    indexContainer: "tenxlogs/index/"
    inputContainer: "rawlogs"
    queues:
      index: index-queue
      query: query-queue
      subquery: subquery-queue
      stream: stream-queue
    auth:
      method: workloadIdentity
      clientId: "<managed identity client id>"
      tenantId: "<entra tenant id>"

The chart adds the azure.workload.identity/use: "true" pod label and the azure.workload.identity/client-id service account annotation. The webhook injects AZURE_CLIENT_ID, AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE. Any `eks

Deploy retriever-10x with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has retriever-10x 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 chartretriever-10x is pinned at v1.0.26 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