NautilusTrader Helm chart
Deploy the official NautilusTrader Python runtime for singleton live nodes, one-shot backtests, or scheduled research workloads.
Features
- Immutable official upstream image digest and explicit strategy-image override
- Non-trading validation mode by default and singleton live-node lifecycle
- One-shot Job and non-overlapping scheduled backtest CronJob
- Optional catalog, event-store, and results PVCs
- Bundled or external PostgreSQL and Redis contracts
- External Secrets, NetworkPolicy, ServiceMonitor, and PrometheusRule support
- Restricted pod security, bounded temporary storage, and disabled API token mount
- Optional PodDisruptionBudget for the live singleton
Architecture
The chart-managed Python runner loads the official package and exposes internal health and metrics endpoints. In live mode it loads an operator-owned factory; in batch modes it runs that factory in a Job or CronJob. Persistent catalog, event-store, and result paths are independent PVCs. PostgreSQL and Redis are optional integration coordinates, not automatically enabled application adapters. Run each live trading node in a separate Helm release.
Install
helm upgrade --install nautilus-trader oci://ghcr.io/helmforgedev/helm/nautilus-trader \
--namespace nautilus-trader --create-namespace
The safe default starts a hardened pod in validate mode. It imports the pinned NautilusTrader runtime and exposes
runner health, but cannot connect to a venue or trade. To run a strategy, package its Python code in a derived image or
mount it, then configure live.mode=live and a live.factory in module:callable form.
Immutable upstream image
Upstream publishes only floating latest and nightly OCI channels, not release-numbered image tags. HelmForge pins
the multi-architecture digest resolved from official latest on 2026-10-09 (upstream revision 7b766f). Upgrades are
therefore explicit and reproducible. The standard image.repository, image.tag, and image.digest values remain
available for a reviewed replacement; clear image.digest when selecting a tag.
Runtime integrations
The optional HelmForge PostgreSQL and Redis dependencies are suitable for evaluation. External services are preferred for production. The chart exposes connection metadata to user strategy code; it does not claim that every pinned NautilusTrader build enables every database or message-bus adapter automatically.
Use secrets.existingSecret or externalSecrets.items for venue credentials. Never commit credentials to values.
Configuration
Values & Configuration Reference
All schema parameters, types, defaults, and allowed values are extracted directly from the chart repository. Filter and search them in the interactive reference below or customize in Values Studio.
See values.yaml and values.schema.json for the complete contract.
Examples
The examples/ directory contains focused values files for safe
validation, live strategies, one-shot and scheduled backtests, external state
services, and restricted egress. Start from the smallest profile that matches
the workload and keep credentials in an existing Secret or ExternalSecret.
Render an example before applying it:
helm template nautilus-trader oci://ghcr.io/helmforgedev/helm/nautilus-trader \
--namespace nautilus-trader \
--values examples/safe-validation.yaml
For a live node with explicit network isolation, combine the strategy and restricted-egress examples after replacing the placeholder factory and CIDRs:
helm upgrade --install nautilus-trader oci://ghcr.io/helmforgedev/helm/nautilus-trader \
--namespace nautilus-trader --create-namespace \
--values examples/live-strategy.yaml \
--values examples/restricted-egress.yaml
Backtesting
Set backtest.enabled=true for a Job. Set scheduledBacktest.enabled=true for a CronJob. Configure a factory and
persistent results storage before production use. See backtesting.
Observability
The chart runner supplies /healthz, /readyz, and /metrics. These report process and factory lifecycle state, not
exchange connectivity, portfolio correctness, or order execution. Optional ServiceMonitor and PrometheusRule resources
integrate the runner with Prometheus Operator.
Security
All chart-managed workloads run as UID/GID 10001 with runtime-default seccomp,
no privilege escalation, all capabilities dropped, a read-only root filesystem,
and no Kubernetes API token. Writable /tmp is a bounded emptyDir. Secrets
enter through Secret references or External Secrets; they are not accepted as
plain chart values. NetworkPolicy remains opt-in because venue, market-data,
database, message-bus, and telemetry destinations are installation-specific.
Troubleshooting
- A pod that never becomes Ready: inspect the runner logs, factory import path,
mounted strategy code, and
runner.readinessTimeoutSeconds. - PostgreSQL or Redis connection failures: confirm the selected mode, Service or external host, Secret key names, TLS requirement, and adapter availability in the pinned image.
- A backtest without output: configure persistent results storage and inspect the completed Job logs before its TTL expires.
- Missing metrics resources: install the Prometheus Operator CRDs before enabling ServiceMonitor or PrometheusRule.
- NetworkPolicy timeouts: explicitly allow DNS plus every venue, data provider, external state service, and telemetry endpoint required by the strategy.
Documentation
Uninstall
helm uninstall nautilus-trader --namespace nautilus-trader
Back up catalogs, event stores, and results before deleting retained or dynamically provisioned storage.
Security Scan
Security scan results use the same Kubescape policy set as HelmForge CI.
Security Scan: nautilus-trader
| Framework | Score |
|---|---|
| MITRE | 100.00% |
| NSA | 95.00% |
| SOC 2 | 90.00% |
| Aggregate resource score | 95.45% |
Kubescape reported no critical or high-severity failures. The two medium findings concern unrestricted ingress and egress because NetworkPolicy remains opt-in for venue- and service-specific connectivity.
System Architecture
DESIGN.md SyncedVerified architecture contract rendered dynamically from GitHub DESIGN.md
flowchart LR code[Operator strategy image or volume] --> runner[Chart runner] config[ConfigMap and Secrets] --> runner runner --> live[Singleton live Deployment] runner --> job[Backtest Job or CronJob] live --> state[(Catalog and event-store PVCs)] job --> results[(Results PVC)] live --> pg[(PostgreSQL)] live --> redis[(Redis)] service[Private health and metrics Service] --> live prometheus[Optional Prometheus Operator] --> service
NautilusTrader Values Schema Reference
Official schema parameters, default values, and types extracted directly from the chart repository.
Global(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| global | object | - | Global settings shared by the chart. |
Name Override(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| nameOverride | string | - | Chart configuration parameter |
Fullname Override(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| fullnameOverride | string | - | Chart configuration parameter |
Common Labels(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| commonLabels | object | - | Chart configuration parameter |
Image(4)
| Parameter | Type | Default | Description |
|---|---|---|---|
| image.repository | string | - | Chart configuration parameter |
| image.tag | string | - | Chart configuration parameter |
| image.digest | string | - | Chart configuration parameter |
| image.pullPolicy | select | - | Chart configuration parameter Allowed: AlwaysIfNotPresentNever |
Image Pull Secrets(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| imagePullSecrets | array | - | Chart configuration parameter |
Live(10)
| Parameter | Type | Default | Description |
|---|---|---|---|
| live.enabled | boolean | - | Chart configuration parameter |
| live.mode | select | - | Chart configuration parameter Allowed: validatelive |
| live.factory | string | - | Chart configuration parameter |
| live.command | array | - | Chart configuration parameter |
| live.args | array | - | Chart configuration parameter |
| live.nodeConfig.environment | string | - | Chart configuration parameter |
| live.nodeConfig.traderId | string | - | Chart configuration parameter |
| live.nodeConfig.logging.level | string | - | Chart configuration parameter |
| live.extraEnv | array | - | Chart configuration parameter |
| live.envFrom | array | - | Chart configuration parameter |
Runner(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| runner.port | integer | - | Chart configuration parameter |
| runner.readinessTimeoutSeconds | integer | - | Chart configuration parameter |
| runner.logLevel | string | - | Chart configuration parameter |
Backtest(12)
| Parameter | Type | Default | Description |
|---|---|---|---|
| backtest.enabled | boolean | - | Chart configuration parameter |
| backtest.factory | string | - | Chart configuration parameter |
| backtest.command | array | - | Chart configuration parameter |
| backtest.args | array | - | Chart configuration parameter |
| backtest.config | object | - | Chart configuration parameter |
| backtest.backoffLimit | integer | - | Chart configuration parameter |
| backtest.activeDeadlineSeconds | integer | - | Chart configuration parameter |
| backtest.ttlSecondsAfterFinished | integer | - | Chart configuration parameter |
| backtest.resources.requests.cpu | any | - | Chart configuration parameter |
| backtest.resources.requests.memory | any | - | Chart configuration parameter |
| backtest.resources.limits.cpu | any | - | Chart configuration parameter |
| backtest.resources.limits.memory | any | - | Chart configuration parameter |
Scheduled Backtest(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| scheduledBacktest.enabled | boolean | - | Chart configuration parameter |
| scheduledBacktest.schedule | string | - | Chart configuration parameter |
| scheduledBacktest.timeZone | string | - | Chart configuration parameter |
| scheduledBacktest.concurrencyPolicy | select | - | Chart configuration parameter Allowed: AllowForbidReplace |
| scheduledBacktest.successfulJobsHistoryLimit | integer | - | Chart configuration parameter |
| scheduledBacktest.failedJobsHistoryLimit | integer | - | Chart configuration parameter |
Secrets(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| secrets.existingSecret | string | - | Chart configuration parameter |
External Secrets(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| externalSecrets.enabled | boolean | - | Chart configuration parameter |
| externalSecrets.refreshInterval | string | - | Chart configuration parameter |
| externalSecrets.items | array | - | Chart configuration parameter |
Database(8)
| Parameter | Type | Default | Description |
|---|---|---|---|
| database.mode | select | - | Chart configuration parameter Allowed: nonepostgresqlexternal |
| database.external.host | string | - | Chart configuration parameter |
| database.external.port | integer | - | Chart configuration parameter |
| database.external.name | string | - | Chart configuration parameter |
| database.external.username | string | - | Chart configuration parameter |
| database.external.tls | boolean | - | Chart configuration parameter |
| database.external.existingSecret | string | - | Chart configuration parameter |
| database.external.passwordKey | string | - | Chart configuration parameter |
Message Bus(8)
| Parameter | Type | Default | Description |
|---|---|---|---|
| messageBus.mode | select | - | Chart configuration parameter Allowed: noneredisexternal |
| messageBus.cacheDatabase | integer | - | Chart configuration parameter |
| messageBus.busDatabase | integer | - | Chart configuration parameter |
| messageBus.external.host | string | - | Chart configuration parameter |
| messageBus.external.port | integer | - | Chart configuration parameter |
| messageBus.external.tls | boolean | - | Chart configuration parameter |
| messageBus.external.existingSecret | string | - | Chart configuration parameter |
| messageBus.external.passwordKey | string | - | Chart configuration parameter |
Postgresql(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| postgresql.enabled | boolean | - | Chart configuration parameter |
| postgresql.architecture | string | - | Chart configuration parameter |
| postgresql.auth.database | string | - | Chart configuration parameter |
| postgresql.auth.username | string | - | Chart configuration parameter |
| postgresql.auth.existingSecret | string | - | Chart configuration parameter |
| postgresql.auth.existingSecretUserPasswordKey | string | - | Chart configuration parameter |
Redis(5)
| Parameter | Type | Default | Description |
|---|---|---|---|
| redis.enabled | boolean | - | Chart configuration parameter |
| redis.architecture | string | - | Chart configuration parameter |
| redis.auth.enabled | boolean | - | Chart configuration parameter |
| redis.auth.existingSecret | string | - | Chart configuration parameter |
| redis.auth.existingSecretPasswordKey | string | - | Chart configuration parameter |
Persistence(15)
| Parameter | Type | Default | Description |
|---|---|---|---|
| persistence.catalog.enabled | boolean | - | Chart configuration parameter |
| persistence.catalog.existingClaim | string | - | Chart configuration parameter |
| persistence.catalog.storageClass | string | - | Chart configuration parameter |
| persistence.catalog.accessModes | array | - | Chart configuration parameter |
| persistence.catalog.size | string | - | Chart configuration parameter |
| persistence.eventStore.enabled | boolean | - | Chart configuration parameter |
| persistence.eventStore.existingClaim | string | - | Chart configuration parameter |
| persistence.eventStore.storageClass | string | - | Chart configuration parameter |
| persistence.eventStore.accessModes | array | - | Chart configuration parameter |
| persistence.eventStore.size | string | - | Chart configuration parameter |
| persistence.results.enabled | boolean | - | Chart configuration parameter |
| persistence.results.existingClaim | string | - | Chart configuration parameter |
| persistence.results.storageClass | string | - | Chart configuration parameter |
| persistence.results.accessModes | array | - | Chart configuration parameter |
| persistence.results.size | string | - | Chart configuration parameter |
Service Account(4)
| Parameter | Type | Default | Description |
|---|---|---|---|
| serviceAccount.create | boolean | - | Chart configuration parameter |
| serviceAccount.name | string | - | Chart configuration parameter |
| serviceAccount.annotations | object | - | Chart configuration parameter |
| serviceAccount.automountServiceAccountToken | boolean | - | Chart configuration parameter |
Service & Networking(5)
| Parameter | Type | Default | Description |
|---|---|---|---|
| service.type | select | - | Chart configuration parameter Allowed: ClusterIPNodePortLoadBalancer |
| service.port | integer | - | Chart configuration parameter |
| service.annotations | object | - | Chart configuration parameter |
| service.ipFamilyPolicy | select | - | Chart configuration parameter Allowed: SingleStackPreferDualStackRequireDualStack |
| service.ipFamilies | array | - | Chart configuration parameter |
Monitoring(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| monitoring.serviceMonitor.enabled | boolean | - | Chart configuration parameter |
| monitoring.serviceMonitor.interval | string | - | Chart configuration parameter |
| monitoring.serviceMonitor.scrapeTimeout | string | - | Chart configuration parameter |
| monitoring.serviceMonitor.labels | object | - | Chart configuration parameter |
| monitoring.prometheusRule.enabled | boolean | - | Chart configuration parameter |
| monitoring.prometheusRule.labels | object | - | Chart configuration parameter |
Health Probes(12)
| Parameter | Type | Default | Description |
|---|---|---|---|
| probes.startup.enabled | boolean | - | Chart configuration parameter |
| probes.startup.periodSeconds | integer | - | Chart configuration parameter |
| probes.startup.timeoutSeconds | integer | - | Chart configuration parameter |
| probes.startup.failureThreshold | integer | - | Chart configuration parameter |
| probes.liveness.enabled | boolean | - | Chart configuration parameter |
| probes.liveness.periodSeconds | integer | - | Chart configuration parameter |
| probes.liveness.timeoutSeconds | integer | - | Chart configuration parameter |
| probes.liveness.failureThreshold | integer | - | Chart configuration parameter |
| probes.readiness.enabled | boolean | - | Chart configuration parameter |
| probes.readiness.periodSeconds | integer | - | Chart configuration parameter |
| probes.readiness.timeoutSeconds | integer | - | Chart configuration parameter |
| probes.readiness.failureThreshold | integer | - | Chart configuration parameter |
Termination Grace Period Seconds(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| terminationGracePeriodSeconds | integer | - | Chart configuration parameter |
Resources(4)
| Parameter | Type | Default | Description |
|---|---|---|---|
| resources.requests.cpu | any | - | Chart configuration parameter |
| resources.requests.memory | any | - | Chart configuration parameter |
| resources.limits.cpu | any | - | Chart configuration parameter |
| resources.limits.memory | any | - | Chart configuration parameter |
Pod Security(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| podSecurityContext.runAsNonRoot | boolean | - | Chart configuration parameter |
| podSecurityContext.runAsUser | integer | - | Chart configuration parameter |
| podSecurityContext.runAsGroup | integer | - | Chart configuration parameter |
| podSecurityContext.fsGroup | integer | - | Chart configuration parameter |
| podSecurityContext.fsGroupChangePolicy | string | - | Chart configuration parameter |
| podSecurityContext.seccompProfile.type | string | - | Chart configuration parameter |
Container Security(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| securityContext.allowPrivilegeEscalation | boolean | - | Chart configuration parameter |
| securityContext.readOnlyRootFilesystem | boolean | - | Chart configuration parameter |
| securityContext.capabilities.drop | array | - | Chart configuration parameter |
Runtime Storage(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| runtimeStorage.tmpSizeLimit | string | - | Chart configuration parameter |
Pod Annotations(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| podAnnotations | object | - | Chart configuration parameter |
Pod Labels(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| podLabels | object | - | Chart configuration parameter |
Priority Class Name(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| priorityClassName | string | - | Chart configuration parameter |
Node Selector(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| nodeSelector | object | - | Chart configuration parameter |
Tolerations(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| tolerations | array | - | Chart configuration parameter |
Affinity(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| affinity | object | - | Chart configuration parameter |
Topology Spread Constraints(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| topologySpreadConstraints | array | - | Chart configuration parameter |
Network Policy(5)
| Parameter | Type | Default | Description |
|---|---|---|---|
| networkPolicy.enabled | boolean | - | Chart configuration parameter |
| networkPolicy.extraIngress | array | - | Chart configuration parameter |
| networkPolicy.egressEnabled | boolean | - | Chart configuration parameter |
| networkPolicy.allowDNS | boolean | - | Chart configuration parameter |
| networkPolicy.extraEgress | array | - | Chart configuration parameter |
Pod Disruption Budget(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| podDisruptionBudget.enabled | boolean | - | Chart configuration parameter |
| podDisruptionBudget.minAvailable | integerstringnull | - | Chart configuration parameter |
| podDisruptionBudget.maxUnavailable | integerstringnull | - | Chart configuration parameter |
Extra Volumes(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraVolumes | array | - | Chart configuration parameter |
Extra Volume Mounts(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraVolumeMounts | array | - | Chart configuration parameter |
Extra Init Containers(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraInitContainers | array | - | Chart configuration parameter |
Extra Containers(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraContainers | array | - | Chart configuration parameter |
Extra Manifests(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraManifests | array | - | Chart configuration parameter |
No schema parameters match your search
Try searching for a different keyword or reset the filter.