quesma

by deathalt

Helm chartv0.0.3App 1.1.19MIT

A Helm chart for deploying production ready Quesma with Opensearch and Opensearch Dashboards

About this chart

Quesma Helm Chart

Helm chart for deploying Quesma (an Elasticsearch API–compatible gateway) on Kubernetes.

This chart can connect Quesma to external datastores or spin up bundled ones via dependencies:

  • opensearch – search cluster (compatible backend)
  • opensearch-dashboards – OpenSearch web UI

By default, both dependencies are disabled. Enable them in values.yaml when needed.


Table of Contents

  • Architecture
  • Requirements
  • Quick Start
  • Dependencies (OpenSearch & Dashboards)
  • Quesma Configuration
  • Ingress
  • Autoscaling
  • Resources and Probes
  • Common Scenarios
  • Upgrade / Uninstall
  • Security Notes
  • Key Parameters
  • Troubleshooting

Architecture

Quesma is deployed as a Deployment with a ClusterIP Service listening on port 8080.

Data flow is organized through:

  • frontendConnectors — emulate Elasticsearch API entry points:
    • elasticsearch-fe-ingest (ingest)
    • elasticsearch-fe-query (search/query)
  • backendConnectors — real data sources:
    • OpenSearch/Elasticsearch (indices/metadata, etc.)
    • SQL storages (clickhouse, hydrolix, clickhouse-os)

Request routing and transformations are handled by processors and pipelines.


Requirements

  • Kubernetes 1.23+
  • Helm 3.9+
  • Access to container registry hosting quesma/quesma
  • (Optional) External OpenSearch/Elasticsearch if not using the bundled dependency

Quick Start

  1. From the chart directory, pull chart dependencies:
helm dependency update .
  1. Create a minimal values.yaml:
image:
  tag: "v1.0.0" # set your desired image tag

config:
  quesmaConfigurationYaml:
    licenseKey: "PASTE_LICENSE_HERE"
    logging:
      level: "info"
      fileLogging: true
    frontendConnectors:
      - name: elastic-ingest
        type: elasticsearch-fe-ingest
        config:
          listenPort: 8080
          disableAuth: true
      - name: elastic-query
        type: elasticsearch-fe-query
        config:
          listenPort: 8080
          disableAuth: true
    backendConnectors:
      - name: opensearch
        type: elasticsearch
        config:
          url: "https://opensearch-cluster-master:9200"
          user: "admin"
          password: "myStrongPassword@123!"
    processors:
      - name: p-query
        type: quesma-v1-processor-query
        config:
          indexes:
            "*":
              target: [ "opensearch" ]
      - name: p-ingest
        type: quesma-v1-processor-ingest
        config:
          indexes:
            "*":
              target: [ "opensearch" ]
    pipelines:
      - name: pipeline-query
        frontendConnectors: [ "elastic-query" ]
        processors: [ "p-query" ]
        backendConnectors: [ "opensearch" ]
      - name: pipeline-ingest
        frontendConnectors: [ "elastic-ingest" ]
        processors: [ "p-ingest" ]
        backendConnectors: [ "opensearch" ]

opensearch:
  enabled: true
  persistence:
    enabled: false
  extraEnvs:
    - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
      value: "myStrongPassword@123!"

opensearch-dashboards:
  enabled: true
  1. Install:
helm install quesma . -n quesma --create-namespace -f values.yaml
  1. Verify resources:
kubectl get pods -n quesma
kubectl get svc -n quesma
  1. Port-forward locally:
kubectl -n quesma port-forward svc/quesma 8080:8080

Dependencies (OpenSearch & Dashboards)

The chart declares two optional dependencies:

  • OpenSearch (opensearch.enabled=true): deploys a stateful OpenSearch cluster in the same namespace.

    • The master service endpoint is typically opensearch-cluster-master:9200 (already referenced in defaults).
    • Set the initial admin password via:
      opensearch:
        extraEnvs:
          - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
            value: "REPLACE_ME"
      
    • In production, enable persistence (opensearch.persistence.enabled=true) and configure a StorageClass and volume size.
  • OpenSearch Dashboards (opensearch-dashboards.enabled=true): deploys the UI.

    • Local access:
      kubectl -n quesma port-forward svc/opensearch-dashboards 5601:5601
      # Then open http://localhost:5601
      

After editing dependencies in Chart.yaml, run helm dependency update . again.


Quesma Configuration

Most settings are defined in values.yaml. Key sections include:

Image

image:
  repository: quesma/quesma
  pullPolicy: Always
  tag: ""   # must be set explicitly (avoid 'latest')
imagePullSecrets: []

Service

service:
  type: ClusterIP
  port: 8080

Container Environment

env:
  - name: QUESMA_CONFIG_FILE
    value: "/quesma-configuration/quesma-config.yaml"

ConfigMap Mount

By default, the chart renders a ConfigMap named quesma-first-config and mounts it to /quesma-configuration/quesma-config.yaml:

volumes:
  - name: quesma-config-volume
    configMap:
      name: quesma-first-config

volumeMounts:
  - name: quesma-config-volume
    mountPath: /quesma-configuration/quesma-config.yaml
    subPath: quesma-config.yaml

Core Quesma Settings

See full README above (truncated for brevity)...

Deploy quesma with OpenTenant

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