Skip to content
NautilusTrader icon
v1.2.2App: vsnapshot-7b766fPinned DigestS3 Backup Ready

Production Helm chart • Apache-2.0 • Zero-Root • Verified on Kubernetes v1.33-v1.36+

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

Official Schema

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.

View Values Schema

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 Synced

Verified 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
Official Contractvalues.schema.json

NautilusTrader Values Schema Reference

Official schema parameters, default values, and types extracted directly from the chart repository.

148 parametersValues Studio

Global(1)

ParameterTypeDefaultDescription
globalobject-Global settings shared by the chart.

Name Override(1)

ParameterTypeDefaultDescription
nameOverridestring-Chart configuration parameter

Fullname Override(1)

ParameterTypeDefaultDescription
fullnameOverridestring-Chart configuration parameter

Common Labels(1)

ParameterTypeDefaultDescription
commonLabelsobject-Chart configuration parameter

Image(4)

ParameterTypeDefaultDescription
image.repositorystring-Chart configuration parameter
image.tagstring-Chart configuration parameter
image.digeststring-Chart configuration parameter
image.pullPolicyselect-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever

Image Pull Secrets(1)

ParameterTypeDefaultDescription
imagePullSecretsarray-Chart configuration parameter

Live(10)

ParameterTypeDefaultDescription
live.enabledboolean-Chart configuration parameter
live.modeselect-Chart configuration parameter
Allowed:validatelive
live.factorystring-Chart configuration parameter
live.commandarray-Chart configuration parameter
live.argsarray-Chart configuration parameter
live.nodeConfig.environmentstring-Chart configuration parameter
live.nodeConfig.traderIdstring-Chart configuration parameter
live.nodeConfig.logging.levelstring-Chart configuration parameter
live.extraEnvarray-Chart configuration parameter
live.envFromarray-Chart configuration parameter

Runner(3)

ParameterTypeDefaultDescription
runner.portinteger-Chart configuration parameter
runner.readinessTimeoutSecondsinteger-Chart configuration parameter
runner.logLevelstring-Chart configuration parameter

Backtest(12)

ParameterTypeDefaultDescription
backtest.enabledboolean-Chart configuration parameter
backtest.factorystring-Chart configuration parameter
backtest.commandarray-Chart configuration parameter
backtest.argsarray-Chart configuration parameter
backtest.configobject-Chart configuration parameter
backtest.backoffLimitinteger-Chart configuration parameter
backtest.activeDeadlineSecondsinteger-Chart configuration parameter
backtest.ttlSecondsAfterFinishedinteger-Chart configuration parameter
backtest.resources.requests.cpuany-Chart configuration parameter
backtest.resources.requests.memoryany-Chart configuration parameter
backtest.resources.limits.cpuany-Chart configuration parameter
backtest.resources.limits.memoryany-Chart configuration parameter

Scheduled Backtest(6)

ParameterTypeDefaultDescription
scheduledBacktest.enabledboolean-Chart configuration parameter
scheduledBacktest.schedulestring-Chart configuration parameter
scheduledBacktest.timeZonestring-Chart configuration parameter
scheduledBacktest.concurrencyPolicyselect-Chart configuration parameter
Allowed:AllowForbidReplace
scheduledBacktest.successfulJobsHistoryLimitinteger-Chart configuration parameter
scheduledBacktest.failedJobsHistoryLimitinteger-Chart configuration parameter

Secrets(1)

ParameterTypeDefaultDescription
secrets.existingSecretstring-Chart configuration parameter

External Secrets(3)

ParameterTypeDefaultDescription
externalSecrets.enabledboolean-Chart configuration parameter
externalSecrets.refreshIntervalstring-Chart configuration parameter
externalSecrets.itemsarray-Chart configuration parameter

Database(8)

ParameterTypeDefaultDescription
database.modeselect-Chart configuration parameter
Allowed:nonepostgresqlexternal
database.external.hoststring-Chart configuration parameter
database.external.portinteger-Chart configuration parameter
database.external.namestring-Chart configuration parameter
database.external.usernamestring-Chart configuration parameter
database.external.tlsboolean-Chart configuration parameter
database.external.existingSecretstring-Chart configuration parameter
database.external.passwordKeystring-Chart configuration parameter

Message Bus(8)

ParameterTypeDefaultDescription
messageBus.modeselect-Chart configuration parameter
Allowed:noneredisexternal
messageBus.cacheDatabaseinteger-Chart configuration parameter
messageBus.busDatabaseinteger-Chart configuration parameter
messageBus.external.hoststring-Chart configuration parameter
messageBus.external.portinteger-Chart configuration parameter
messageBus.external.tlsboolean-Chart configuration parameter
messageBus.external.existingSecretstring-Chart configuration parameter
messageBus.external.passwordKeystring-Chart configuration parameter

Postgresql(6)

ParameterTypeDefaultDescription
postgresql.enabledboolean-Chart configuration parameter
postgresql.architecturestring-Chart configuration parameter
postgresql.auth.databasestring-Chart configuration parameter
postgresql.auth.usernamestring-Chart configuration parameter
postgresql.auth.existingSecretstring-Chart configuration parameter
postgresql.auth.existingSecretUserPasswordKeystring-Chart configuration parameter

Redis(5)

ParameterTypeDefaultDescription
redis.enabledboolean-Chart configuration parameter
redis.architecturestring-Chart configuration parameter
redis.auth.enabledboolean-Chart configuration parameter
redis.auth.existingSecretstring-Chart configuration parameter
redis.auth.existingSecretPasswordKeystring-Chart configuration parameter

Persistence(15)

ParameterTypeDefaultDescription
persistence.catalog.enabledboolean-Chart configuration parameter
persistence.catalog.existingClaimstring-Chart configuration parameter
persistence.catalog.storageClassstring-Chart configuration parameter
persistence.catalog.accessModesarray-Chart configuration parameter
persistence.catalog.sizestring-Chart configuration parameter
persistence.eventStore.enabledboolean-Chart configuration parameter
persistence.eventStore.existingClaimstring-Chart configuration parameter
persistence.eventStore.storageClassstring-Chart configuration parameter
persistence.eventStore.accessModesarray-Chart configuration parameter
persistence.eventStore.sizestring-Chart configuration parameter
persistence.results.enabledboolean-Chart configuration parameter
persistence.results.existingClaimstring-Chart configuration parameter
persistence.results.storageClassstring-Chart configuration parameter
persistence.results.accessModesarray-Chart configuration parameter
persistence.results.sizestring-Chart configuration parameter

Service Account(4)

ParameterTypeDefaultDescription
serviceAccount.createboolean-Chart configuration parameter
serviceAccount.namestring-Chart configuration parameter
serviceAccount.annotationsobject-Chart configuration parameter
serviceAccount.automountServiceAccountTokenboolean-Chart configuration parameter

Service & Networking(5)

ParameterTypeDefaultDescription
service.typeselect-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
service.portinteger-Chart configuration parameter
service.annotationsobject-Chart configuration parameter
service.ipFamilyPolicyselect-Chart configuration parameter
Allowed:SingleStackPreferDualStackRequireDualStack
service.ipFamiliesarray-Chart configuration parameter

Monitoring(6)

ParameterTypeDefaultDescription
monitoring.serviceMonitor.enabledboolean-Chart configuration parameter
monitoring.serviceMonitor.intervalstring-Chart configuration parameter
monitoring.serviceMonitor.scrapeTimeoutstring-Chart configuration parameter
monitoring.serviceMonitor.labelsobject-Chart configuration parameter
monitoring.prometheusRule.enabledboolean-Chart configuration parameter
monitoring.prometheusRule.labelsobject-Chart configuration parameter

Health Probes(12)

ParameterTypeDefaultDescription
probes.startup.enabledboolean-Chart configuration parameter
probes.startup.periodSecondsinteger-Chart configuration parameter
probes.startup.timeoutSecondsinteger-Chart configuration parameter
probes.startup.failureThresholdinteger-Chart configuration parameter
probes.liveness.enabledboolean-Chart configuration parameter
probes.liveness.periodSecondsinteger-Chart configuration parameter
probes.liveness.timeoutSecondsinteger-Chart configuration parameter
probes.liveness.failureThresholdinteger-Chart configuration parameter
probes.readiness.enabledboolean-Chart configuration parameter
probes.readiness.periodSecondsinteger-Chart configuration parameter
probes.readiness.timeoutSecondsinteger-Chart configuration parameter
probes.readiness.failureThresholdinteger-Chart configuration parameter

Termination Grace Period Seconds(1)

ParameterTypeDefaultDescription
terminationGracePeriodSecondsinteger-Chart configuration parameter

Resources(4)

ParameterTypeDefaultDescription
resources.requests.cpuany-Chart configuration parameter
resources.requests.memoryany-Chart configuration parameter
resources.limits.cpuany-Chart configuration parameter
resources.limits.memoryany-Chart configuration parameter

Pod Security(6)

ParameterTypeDefaultDescription
podSecurityContext.runAsNonRootboolean-Chart configuration parameter
podSecurityContext.runAsUserinteger-Chart configuration parameter
podSecurityContext.runAsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupChangePolicystring-Chart configuration parameter
podSecurityContext.seccompProfile.typestring-Chart configuration parameter

Container Security(3)

ParameterTypeDefaultDescription
securityContext.allowPrivilegeEscalationboolean-Chart configuration parameter
securityContext.readOnlyRootFilesystemboolean-Chart configuration parameter
securityContext.capabilities.droparray-Chart configuration parameter

Runtime Storage(1)

ParameterTypeDefaultDescription
runtimeStorage.tmpSizeLimitstring-Chart configuration parameter

Pod Annotations(1)

ParameterTypeDefaultDescription
podAnnotationsobject-Chart configuration parameter

Pod Labels(1)

ParameterTypeDefaultDescription
podLabelsobject-Chart configuration parameter

Priority Class Name(1)

ParameterTypeDefaultDescription
priorityClassNamestring-Chart configuration parameter

Node Selector(1)

ParameterTypeDefaultDescription
nodeSelectorobject-Chart configuration parameter

Tolerations(1)

ParameterTypeDefaultDescription
tolerationsarray-Chart configuration parameter

Affinity(1)

ParameterTypeDefaultDescription
affinityobject-Chart configuration parameter

Topology Spread Constraints(1)

ParameterTypeDefaultDescription
topologySpreadConstraintsarray-Chart configuration parameter

Network Policy(5)

ParameterTypeDefaultDescription
networkPolicy.enabledboolean-Chart configuration parameter
networkPolicy.extraIngressarray-Chart configuration parameter
networkPolicy.egressEnabledboolean-Chart configuration parameter
networkPolicy.allowDNSboolean-Chart configuration parameter
networkPolicy.extraEgressarray-Chart configuration parameter

Pod Disruption Budget(3)

ParameterTypeDefaultDescription
podDisruptionBudget.enabledboolean-Chart configuration parameter
podDisruptionBudget.minAvailableintegerstringnull-Chart configuration parameter
podDisruptionBudget.maxUnavailableintegerstringnull-Chart configuration parameter

Extra Volumes(1)

ParameterTypeDefaultDescription
extraVolumesarray-Chart configuration parameter

Extra Volume Mounts(1)

ParameterTypeDefaultDescription
extraVolumeMountsarray-Chart configuration parameter

Extra Init Containers(1)

ParameterTypeDefaultDescription
extraInitContainersarray-Chart configuration parameter

Extra Containers(1)

ParameterTypeDefaultDescription
extraContainersarray-Chart configuration parameter

Extra Manifests(1)

ParameterTypeDefaultDescription
extraManifestsarray-Chart configuration parameter