Skip to main content
Hybrid runs the data plane in your environment and keeps the control plane on NeuralTrust SaaS. Raw prompts and responses stay in your PostgreSQL; only configuration requests and metadata reach NeuralTrust, and your cluster opens every one of those connections. This guide covers the architecture, network requirements, installation, and high-availability configuration for a Hybrid deployment.

Architecture

Hybrid architecture: in your cluster, clients call TrustGate on :8081 for LLM traffic and :8082 for MCP, TrustGate calls TrustGuard on :8081, and TrustGuard calls the Firewall on :8000. TrustGate calls your upstream LLM providers. DataAgent hosts the OTLP egress collector on :4317 and :4318 and serves authorized retrieval. PostgreSQL and Redis are recommended datastores outside the cluster. Four outbound connections on 443 reach NeuralTrust SaaS — a config-sync endpoint for AgentGateway, a second one for TrustGuard, telemetry ingest, and DataBridge — all initiated from your environment. Hybrid architecture: in your cluster, clients call TrustGate on :8081 for LLM traffic and :8082 for MCP, TrustGate calls TrustGuard on :8081, and TrustGuard calls the Firewall on :8000. TrustGate calls your upstream LLM providers. DataAgent hosts the OTLP egress collector on :4317 and :4318 and serves authorized retrieval. PostgreSQL and Redis are recommended datastores outside the cluster. Four outbound connections on 443 reach NeuralTrust SaaS — a config-sync endpoint for AgentGateway, a second one for TrustGuard, telemetry ingest, and DataBridge — all initiated from your environment.

How the planes connect

Config sync and DataBridge are outbound only. Your cluster dials them; nothing at NeuralTrust initiates those, so you open egress and never ingress for them. The console is the one exception. The Dataplane URL you register there is a URL NeuralTrust calls, so your published LLM and MCP entry points must accept inbound HTTPS from a single NeuralTrust source IP. Agree that rule with your network team early — it is the requirement security reviews most often push back on. The address is in Network. TrustGate and TrustGuard never talk to SaaS directly for metadata. They emit OTLP to a collector co-located with DataAgent inside your cluster, and that collector is what egresses. Defaults come from environment variables, TELEMETRY_EXPORTERS_METADATA=otlp and TELEMETRY_EXPORTERS_RAW=postgres, so metadata leaves the cluster and raw payloads stay in your PostgreSQL.

What runs

Products are selected with global.products.trustgate, global.products.trustguard, and global.products.dataPlane. All default to off and at least one must be true. DataAgent is worth understanding because it is unusual: it exposes no inbound service. It dials out to DataBridge and holds the stream open, and queries arrive over that stream. There is nothing to expose and nothing to allow inbound. It also runs single-replica by design — two would register duplicate streams. Each enabled product needs its own enrolled DataAgent; only a red-teaming-only install (global.products.dataPlane alone) runs without one. TrustGate admin, the console, and analytics are not deployed in Hybrid — they run on SaaS. There is no in-cluster ClickHouse.

Prerequisites

  • A Kubernetes cluster with an ingress controller, and Helm 3.8+
  • Roughly 3–4 workers at 8 vCPU / 16–32 GiB — a starting point, see Capacity
  • A base domain you can point at the cluster ingress, for example platform.example.com
  • The network rules in Network below
  • A reachable PostgreSQL and Redis
  • The registry key NeuralTrust sends you when your account is provisioned — Container images

Check your datastores first

The two most common first-install failures are a datastore that is not actually reachable and one that is reachable but silently wrong. Redis is required. Both gateways validate REDIS_HOST at boot and refuse to start without it, even though a Hybrid data plane does not use PostgreSQL for its own configuration. TrustGate uses Redis for rate limiting and semantic caching on the request path. PostgreSQL is where your raw payloads live. Prompts and responses are written there and never leave your cluster. The chart deploys both in-cluster by default so a proof of concept can start without provisioning anything. Production should set deploy: false and point at managed instances outside the cluster — see Managed stores. An unreachable store fails loudly. The pattern to watch for is a component whose default quietly points at localhost: it comes up healthy and looks fine until you use the feature that needs it. Set every host explicitly.

Network

Allow TCP 443 from your cluster egress — and from any NAT or proxy in front of it — to these hosts. Prefer hostname rules where your firewall supports DNS-based allowlists; the IPs are for static ACLs. If DNS resolves differently in your region, trust DNS and ask NeuralTrust support to refresh the list. Allow the telemetry host matching the region your tenant is provisioned in. Product metadata OTLP does not leave the pods directly — the co-located egress collector forwards to the ingest endpoint for your region, so that is the host to list if your policy enumerates every external destination. Also allow outbound HTTPS to your container registry (or mirror), your LLM upstreams, and your PostgreSQL and Redis.

Inbound

Hybrid is not egress-only. Your published TrustGate LLM and MCP entry points must accept inbound HTTPS from: Scope the rule to your network boundary or ingress for those two hosts. Nothing needs to reach TrustGuard, Firewall, the data-plane API, or DataAgent from outside the cluster.
A data plane that cannot reach the egress hosts does not crash. It starts cleanly, serves its last-known-good configuration, and quietly stops receiving updates or shipping telemetry. Verify reachability from inside the cluster before go-live rather than discovering it afterwards.
Two of these carry long-lived streams. If an egress proxy or middlebox reaps idle connections, config-sync and DataBridge drop and reconnect on that interval — check its idle timeout. A TLS-intercepting proxy breaks certificate verification unless its CA reaches the client: put it in the bundle you point dataagent.databridge.tlsCa, <product>.configSync.tlsCa and global.clickstack.egress.tlsCaSecretName at, since each of those replaces the system roots rather than adding to them.

Install

Step 3 is where most installs fail. Those four Secrets are never generated by the chart. If your values file does not reference them, the install stops at render time with a validation error.
1

Create the namespace and image pull secret

NeuralTrust images are private. Turn the registry key into the pull Secret every component expects, using the script from the chart sources — it fills in the registry server for you:
If your cluster cannot reach the NeuralTrust registry, mirror the images into your own and set global.imageRegistry. Both paths, and the two collector images that imageRegistry does not rewrite, are in Container images.
2

Create the gateway in the console

Open TrustGate → New Gateway, name it, choose Private, then Kubernetes. If you are also running TrustGuard, create a private TrustGuard in TrustGuard → Agent Runtime as well — each product is a separate console object with its own credentials. Console setup covers the wizard screen by screen.The wizard produces a values.yaml with credentials inline. Treat that file as a secret, do not commit it, and take exactly two values out of it per product:
  • CONFIG_SYNC_TOKEN — proves to the SaaS control plane that this data plane is yours
  • the DataAgent enrollment JWT — carries your tenant identity
Everything else in the wizard output is superseded by the chart’s own interfaces. One key needs renaming as you transcribe it: older consoles write global.products.agentgateway: true, which the chart rejects. global.products is keyed by product id, so TrustGate is trustgate there even though its values block is agentgateway: — see the naming map.
3

Create the four operator-supplied Secrets

Those four values are all you supply:
Everything else — JWT signing secrets on both sides of every internal call, database passwords for in-cluster stores, the config-sync cache key, the MCP OAuth signing key — is generated on first install and reused on upgrade. Your own short list is the registry pull secret, these four tokens, and the credentials for any datastore you provide. See Secrets.
Do not create CONFIG_SYNC_LKG_KEY. Earlier releases asked you to generate one with openssl rand -base64 32; since chart 2.6.0 the chart generates it, because it only encrypts a local cache and is never sent anywhere. The one exception is turning off chart secret generation entirely, which makes every generated credential yours to supply.
The enrollment JWT already carries tenant_id and instance_id. Do not set a tenant ID in values.
4

Write your values file

The chart ships values-required.yaml, a full-hybrid preset that already matches the Secret names above. Copy it and change the two cluster-specific lines:
For a subset of products, drop the flags you do not need and use the matching tracked slice — values-trustgate.yaml.example, values-trustguard.yaml.example, or values-red-teaming.yaml.example (data-plane API only, which needs no DataAgent and no config-sync). Every switch is in Values cheat sheet.Do not set configSync.enabled: true. Hybrid derives it from the deployment mode, and restating it is a frequent cause of confusing errors.
5

Install

The chart registry is public — no helm registry login and no credentials needed to pull it. Only the container images are private, which is what the gcr-secret pull Secret in step 1 is for. Always pass --version so the release is reproducible.The chart validates your values before it renders, so a missing credential fails in your terminal rather than as a pod in CreateContainerConfigError twenty minutes later. The messages name the value to set. To inspect manifests first:
On OpenShift the install is the same but the chart renders native Routes instead of Ingress — see OpenShift. Provider-specific ingress, certificate, and managed-store choices are in Cloud notes.

Verify

Running is not the same as working. A Hybrid data plane’s readiness probe includes a snapshot check, so it reports Ready only after it has pulled configuration from SaaS.
With all three products enabled you should see agentgateway-proxy, agentgateway-mcp, trustguard-data-plane, data-plane-api, firewall and its workers, dataagent, and dataagent-trustguard. In-cluster control-plane-postgresql and redis appear only while deploy: true. A pod that is Running but never Ready is the signature of config-sync failing. Three causes, in order of likelihood:
  1. The token is wrong, or was pasted with trailing whitespace
  2. Egress to *.neuraltrust.ai:443 is blocked — see Network
  3. A TLS-intercepting proxy is present and its CA is not trusted
For the last case set configSync.tlsCa. Do not reach for configSync.tlsInsecure — the runtimes refuse it under a deployed APP_ENV. Config sync covers the mechanism and its diagnostics.

Expose both entry points

Hostnames derive from global.domain: TrustGate listens on two ports for two different protocols, and they need separate hostnames in production:
Point DNS at the ingress address, then set both in Settings → Agent Gateway → General. The wizard bootstraps both from a single URL, which works for the proxy and quietly breaks MCP — the failure appears as tool calls that never resolve rather than as an error.

What “metadata only” means concretely

Raw prompts and responses are written to your PostgreSQL. What leaves your cluster is telemetry: request metadata, timings, detector verdicts, and counts. The egress path is worth knowing. A clickstack-egress-collector runs alongside your primary DataAgent. It exchanges the DataAgent enrollment JWT for a short-lived OTLP access token through a loopback broker on 127.0.0.1:9465, then exports over OTLP with that token. There is no long-lived bearer token on the application pods, and the broker only listens on loopback. This is also why the chart refuses to install with a product enabled but no DataAgent enrollment configured: without it the egress collector has nothing to exchange, so telemetry would silently never leave. The checks above confirm the install came up. Before handing it over, work through the validation checklist — it covers what kubectl cannot see: DNS and TLS from the caller’s network, MCP tested separately from the LLM route, policy decisions, and telemetry actually arriving.

Upgrades

Generated credentials are looked up and reused, so an upgrade does not rotate secrets or invalidate sessions. Keep data planes at least as new as the control plane. The config-sync contract changed in recent TrustGate releases (a reorganised snapshot and a new StoreInstallations gRPC service for DB-less MCP data planes), so a data plane that lags behind the hosted control plane may stop receiving configuration or fail MCP Store calls. Upgrade promptly when NeuralTrust announces a control-plane release, and in a Central setup upgrade the control plane and its data planes together. One caveat: workloads that read configuration through envFrom carry no checksum of the ConfigMap, so a values change that only touches a ConfigMap updates the ConfigMap without restarting the pods. The change then takes effect at the next unrelated restart. If you changed something behavioural, restart the affected deployment yourself:

High availability

The availability ladder is the same for every self-hosted model, so it lives on one page: what each tier survives, the replica and disruption settings the chart does and does not expose, the failure table, and the promotion runbook.

High availability

The four tiers, from one cluster across zones to two active regions, the two invariants, and exactly what you change in the chart.
Three things are specific to Hybrid.

Each cluster pulls its own configuration

Both clusters use the same gateway scope and the same credentials for it, and each pulls from NeuralTrust SaaS independently, keeping its own last-known-good copy. There is no shared configuration store between them and nothing to replicate — which is why a second cluster costs you no configuration work. The passive cluster is warm: its workloads run, pass health checks, and keep synchronizing, but it receives no production traffic.

Only the active cluster runs DataAgent

Two DataAgents on one gateway scope register duplicate streams. Stop it in the passive cluster and start it only as a step in the promotion — never leave both running “ready to go”.

Losing SaaS is not losing the request path

If the control plane or your egress to it goes down, both clusters keep enforcing their last synchronized configuration and traffic is unaffected. Only configuration changes stop, and they apply once sync resumes. The exception is a pod that restarts during the outage: it needs the last-known-good file on persistent storage, or it will not become Ready. See restarts during a control-plane outage.
Do not make configuration changes directly in one data plane during a control-plane outage. The control plane remains the source of truth.

Hybrid at tier 3

Two Hybrid data-plane clusters in active/passive across two regions. Clients reach global LLM and MCP URLs that a customer-operated traffic manager points at the active cluster. Both clusters pull the same gateway-scoped configuration from NeuralTrust SaaS over outbound 443 and keep their own last-known-good copy. Both use one shared writable PostgreSQL primary with a cross-region read replica promoted on failover, while each cluster runs its own region-local Redis. Only the active cluster runs DataAgent. Two Hybrid data-plane clusters in active/passive across two regions. Clients reach global LLM and MCP URLs that a customer-operated traffic manager points at the active cluster. Both clusters pull the same gateway-scoped configuration from NeuralTrust SaaS over outbound 443 and keep their own last-known-good copy. Both use one shared writable PostgreSQL primary with a cross-region read replica promoted on failover, while each cluster runs its own region-local Redis. Only the active cluster runs DataAgent. Both cluster edges must accept the NeuralTrust inbound source IP, and the global LLM/proxy and MCP URLs must resolve to the same cluster — keep both protocols together through a promotion.

Next steps

Console setup

Create both products and map their tokens to chart Secrets.

Configuration

Managed stores, ingress, TLS, and every values switch.

Secrets

What the chart generates and what you must supply.

Cloud notes

Ingress, certificates, and managed stores per provider.

Validation checklist

What to prove before the install counts as done.

Troubleshooting

Install, pod, config-sync, and telemetry failures.