Skip to content
Temporal icon
v1.2.3App: v1.32.2Pinned DigestS3 Backup Ready

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

Temporal Helm Chart

Production-oriented Temporal for Kubernetes with separate server roles, managed PostgreSQL schemas, External Secrets support, observability, and native Gateway API routes for both HTTP and gRPC.

Highlights

  • Temporal Server 1.32.1 and UI 2.56.0 official images.
  • Frontend, history, matching, and worker scale independently.
  • Bundled HelmForge PostgreSQL or an external PostgreSQL service.
  • Official schema tooling gates server startup on initialized schemas.
  • HTTPRoute targets only the Web UI; GRPCRoute targets only the gRPC frontend.
  • Ingress, dual-stack Services, PDBs, NetworkPolicy, ServiceMonitor, and ESO.
  • Native temporal operator cluster health runtime validation.

Install

helm upgrade --install temporal oci://ghcr.io/helmforgedev/helm/temporal \
  --namespace temporal \
  --create-namespace

Wait for the schema Job and all server roles:

kubectl -n temporal get pods,jobs
helm test temporal -n temporal --logs

Architecture

Component Purpose Public port
frontend SDK/API gateway and routing gRPC 7233
history Workflow state and timers internal
matching Task queues internal
worker System workflows internal
Web UI Browser interface HTTP 8080
PostgreSQL Default and visibility stores internal

See docs/architecture.md for membership, persistence, schema, and scaling details.

Configuration

Listener ports and Kubernetes Service ports are intentionally independent:

Purpose Process listener Service port
Web UI HTTP containerPorts.web (default 8080) webService.port (default 8080)
Server metrics containerPorts.metrics (default 9090) monitoring.servicePort (default 9090)
Frontend gRPC server.components.frontend.rpcPort frontendService.port
Frontend HTTP server.components.frontend.httpPort frontendService.httpPort

Changing containerPorts.web sets the official UI image's TEMPORAL_UI_PORT. Changing containerPorts.metrics updates Temporal Server's Prometheus listenAddress. Services continue to target named container ports, so their externally visible ports may be changed independently.

containerPorts:
  web: 18080
  metrics: 19090
webService:
  port: 8080
monitoring:
  servicePort: 9090

See values.yaml for the complete contract and docs/operations.md for operational procedures.

Gateway API

The chart does not create a Gateway. Reference listeners already owned by the platform team:

gatewayAPI:
  enabled: true
  httpRoutes:
    - name: ui
      parentRefs:
        - name: platform-gateway
          namespace: gateway-system
          sectionName: https
      hostnames:
        - temporal.example.com
  grpcRoutes:
    - name: frontend
      parentRefs:
        - name: platform-gateway
          namespace: gateway-system
          sectionName: temporal-grpc
      hostnames:
        - api.temporal.example.com

The frontend Service advertises kubernetes.io/h2c. Terminate TLS on the Gateway or add controller-compatible backend TLS policy. GRPCRoute termination does not preserve individual SDK client certificate identity; use TLSRoute passthrough through separately managed manifests when strict end-to-end mTLS is required. See docs/gateway-api.md.

PostgreSQL

The default mode installs the HelmForge PostgreSQL dependency and creates both Temporal databases. For an external service:

database:
  mode: external
  host: temporal-postgresql.database.svc
credentials:
  existingSecret: temporal-external-database
postgresql:
  enabled: false

The Secret must contain user-password. Both databases must exist and the configured user must own, or have sufficient privileges to manage, Temporal's schemas. schema.useHelmHooks=true is supported only for external databases.

PostgreSQL 18.6 in the bundled dependency is beyond Temporal's published active test matrix, which currently documents PostgreSQL through 16.6. HelmForge validates schema bootstrap and native runtime behavior; use an upstream-tested external version when formal vendor compatibility is required.

Immutable History Shards

server.numHistoryShards is 512 and cannot be changed after initialization. Changing it against an existing database can corrupt cluster routing. The chart schema and template validation therefore hold the value constant.

External Secrets

Set credentials.existingSecret to the target Secret and use the canonical externalSecrets.items[] contract. The ESO controller, SecretStore, and remote values remain platform responsibilities. See examples/external-secrets.yaml.

High Availability

Set replicas per server role from measured traffic. History and matching often need different scaling from frontend. Use topology spread constraints or anti-affinity, enable PDBs only after replicas exceed one, and operate the database with independent backup and restore procedures.

The included production example is a starting point, not a capacity promise:

helm upgrade --install temporal ./charts/temporal \
  --namespace temporal \
  --create-namespace \
  -f charts/temporal/examples/production-ha.yaml

Observability

Every server role exposes Prometheus metrics on containerPorts.metrics through the monitoring.servicePort port of its headless Service. Enable monitoring.serviceMonitor.enabled when Prometheus Operator CRDs are installed. Alert on service and persistence errors, request latency, queue backlogs, and database saturation.

Network Policy

The optional policy allows same-namespace control-plane traffic. With egress enabled it also allows DNS and accepts complete extraTo and extraEgress rules. Add explicit controller, scraper, and external database peers for your cluster topology before enforcing restrictive policies.

Security

  • Keep Gateway API and Ingress disabled until TLS and authorization are ready.
  • Prefer existing Secrets or ESO in production.
  • Restrict frontend gRPC to trusted networks and authenticated clients.
  • Disable admin tools if interactive cluster administration is not required.
  • Back up PostgreSQL and test restoration with the credential Secret.
  • Review route status and controller conformance before production traffic.

Upgrades

Upgrade schemas before server binaries and cross Temporal minor releases one at a time. Keep server and admin-tools versions aligned. After every rollout, confirm the actual images, schema Job, restarts, events, server logs, native cluster health, and Web UI health.

Security Scan

Security scan results use the same Kubescape policy set as HelmForge CI.

Security Scan: temporal

Framework Score
MITRE 100.00%
NSA 86.25%
SOC 2 85.45%
Aggregate resource score 89.46%

Kubescape reported no critical failures. Remaining findings are primarily CPU limits, opt-in NetworkPolicy defaults, and writable filesystems required by the official PostgreSQL and operational images. The application server and Web UI run non-root with dropped capabilities and read-only root filesystems.

Validation

make validate-chart CHART=temporal covers dependencies, strict lint, every CI values file, unit tests, real CRD schemas, Artifact Hub lint, and behavioral k3d validation. The chart-owned smoke test verifies Temporal gRPC cluster health and Web UI /healthz, complementing Kubernetes readiness probes.

Documentation

Contributing

See CONTRIBUTING.md.

System Architecture

DESIGN.md Synced

Verified architecture contract rendered dynamically from GitHub DESIGN.md

flowchart LR
  SDK[Temporal SDK clients] --> Frontend[Frontend Service]
  Browser[Browser] --> WebService[Web UI Service]
  WebService --> Web[Temporal Web UI]
  Web --> Frontend
  Frontend --> Matching[Matching]
  Frontend --> History[History]
  Matching --> History
  Worker[Temporal system worker] --> Frontend
  Frontend --> Database[(PostgreSQL)]
  History --> Database
  Matching --> Database
  Worker --> Database
  Prometheus[Prometheus] -. metrics .-> Frontend
  Prometheus -. metrics .-> History
  Prometheus -. metrics .-> Matching
  Prometheus -. metrics .-> Worker
Official Contractvalues.schema.json

Temporal Values Schema Reference

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

139 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

Common Annotations(1)

ParameterTypeDefaultDescription
commonAnnotationsobject-Chart configuration parameter

Annotations(1)

ParameterTypeDefaultDescription
annotationsobject-Chart configuration parameter

Image Pull Secrets(1)

ParameterTypeDefaultDescription
imagePullSecretsarray-Chart configuration parameter

Container Ports(2)

ParameterTypeDefaultDescription
containerPorts.webinteger-Chart configuration parameter
containerPorts.metricsinteger-Chart configuration parameter

Server(38)

ParameterTypeDefaultDescription
server.image.repositorystring-Chart configuration parameter
server.image.tagstring-Chart configuration parameter
server.image.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever
server.numHistoryShardsinteger512Chart configuration parameter
server.versionCheckDisabledboolean-Chart configuration parameter
server.dynamicConfigobject-Chart configuration parameter
server.extraEnvarray-Chart configuration parameter
server.extraEnvFromarray-Chart configuration parameter
server.podAnnotationsobject-Chart configuration parameter
server.podLabelsobject-Chart configuration parameter
server.podSecurityContextobject-Chart configuration parameter
server.securityContextobject-Chart configuration parameter
server.components.frontend.enabledboolean-Chart configuration parameter
server.components.frontend.replicaCountinteger-Chart configuration parameter
server.components.frontend.rpcPortinteger-Chart configuration parameter
server.components.frontend.httpPortinteger-Chart configuration parameter
server.components.frontend.membershipPortinteger-Chart configuration parameter
server.components.frontend.resourcesobject-Chart configuration parameter
server.components.history.enabledboolean-Chart configuration parameter
server.components.history.replicaCountinteger-Chart configuration parameter
server.components.history.rpcPortinteger-Chart configuration parameter
server.components.history.membershipPortinteger-Chart configuration parameter
server.components.history.resourcesobject-Chart configuration parameter
server.components.matching.enabledboolean-Chart configuration parameter
server.components.matching.replicaCountinteger-Chart configuration parameter
server.components.matching.rpcPortinteger-Chart configuration parameter
server.components.matching.membershipPortinteger-Chart configuration parameter
server.components.matching.resourcesobject-Chart configuration parameter
server.components.worker.enabledboolean-Chart configuration parameter
server.components.worker.replicaCountinteger-Chart configuration parameter
server.components.worker.rpcPortinteger-Chart configuration parameter
server.components.worker.membershipPortinteger-Chart configuration parameter
server.components.worker.resourcesobject-Chart configuration parameter
server.nodeSelectorobject-Chart configuration parameter
server.tolerationsarray-Chart configuration parameter
server.affinityobject-Chart configuration parameter
server.topologySpreadConstraintsarray-Chart configuration parameter
server.terminationGracePeriodSecondsinteger-Chart configuration parameter

Schema(11)

ParameterTypeDefaultDescription
schema.enabledboolean-Chart configuration parameter
schema.useHelmHooksboolean-Chart configuration parameter
schema.activeDeadlineSecondsinteger-Chart configuration parameter
schema.backoffLimitinteger-Chart configuration parameter
schema.initialDelaySecondsinteger-Chart configuration parameter
schema.waitImage.repositorystring-Chart configuration parameter
schema.waitImage.tagstring-Chart configuration parameter
schema.waitImage.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever
schema.expectedVersionstring-Chart configuration parameter
schema.visibilityExpectedVersionstring-Chart configuration parameter
schema.resourcesobject-Chart configuration parameter

Database(10)

ParameterTypeDefaultDescription
database.modestring-Chart configuration parameter
Allowed:postgresqlexternal
database.hoststring-Chart configuration parameter
database.portinteger-Chart configuration parameter
database.databasestring-Chart configuration parameter
database.visibilityDatabasestring-Chart configuration parameter
database.usernamestring-Chart configuration parameter
database.pluginNamestring-Chart configuration parameter
Allowed:postgres12postgres12_pgx
database.maxConnsinteger-Chart configuration parameter
database.maxIdleConnsinteger-Chart configuration parameter
database.maxConnLifetimestring-Chart configuration parameter

Credentials(3)

ParameterTypeDefaultDescription
credentials.existingSecretstring-Chart configuration parameter
credentials.secretNamestring-Chart configuration parameter
credentials.passwordKeystring-Chart configuration parameter

Web(16)

ParameterTypeDefaultDescription
web.enabledboolean-Chart configuration parameter
web.replicaCountinteger-Chart configuration parameter
web.image.repositorystring-Chart configuration parameter
web.image.tagstring-Chart configuration parameter
web.image.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever
web.extraEnvarray-Chart configuration parameter
web.extraEnvFromarray-Chart configuration parameter
web.podAnnotationsobject-Chart configuration parameter
web.podLabelsobject-Chart configuration parameter
web.resourcesobject-Chart configuration parameter
web.securityContextobject-Chart configuration parameter
web.podSecurityContextobject-Chart configuration parameter
web.nodeSelectorobject-Chart configuration parameter
web.tolerationsarray-Chart configuration parameter
web.affinityobject-Chart configuration parameter
web.topologySpreadConstraintsarray-Chart configuration parameter

Admin Tools(6)

ParameterTypeDefaultDescription
adminTools.enabledboolean-Chart configuration parameter
adminTools.annotationsobject-Chart configuration parameter
adminTools.image.repositorystring-Chart configuration parameter
adminTools.image.tagstring-Chart configuration parameter
adminTools.image.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever
adminTools.resourcesobject-Chart configuration parameter

Frontend Service(6)

ParameterTypeDefaultDescription
frontendService.typestring-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
frontendService.portinteger-Chart configuration parameter
frontendService.httpPortinteger-Chart configuration parameter
frontendService.annotationsobject-Chart configuration parameter
frontendService.ipFamilyPolicystring-Chart configuration parameter
Allowed:SingleStackPreferDualStackRequireDualStack
frontendService.ipFamiliesarray-Chart configuration parameter

Web Service(5)

ParameterTypeDefaultDescription
webService.typestring-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
webService.portinteger-Chart configuration parameter
webService.annotationsobject-Chart configuration parameter
webService.ipFamilyPolicystring-Chart configuration parameter
Allowed:SingleStackPreferDualStackRequireDualStack
webService.ipFamiliesarray-Chart configuration parameter

Ingress(5)

ParameterTypeDefaultDescription
ingress.enabledboolean-Chart configuration parameter
ingress.ingressClassNamestring-Chart configuration parameter
ingress.annotationsobject-Chart configuration parameter
ingress.hostsarray-Chart configuration parameter
ingress.tlsarray-Chart configuration parameter

Gateway API(3)

ParameterTypeDefaultDescription
gatewayAPI.enabledboolean-Chart configuration parameter
gatewayAPI.httpRoutesarray-Chart configuration parameter
gatewayAPI.grpcRoutesarray-Chart configuration parameter

External Secrets(3)

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

Pdb(4)

ParameterTypeDefaultDescription
pdb.enabledboolean-Chart configuration parameter
pdb.annotationsobject-Chart configuration parameter
pdb.minAvailableintegerstring-Chart configuration parameter
pdb.maxUnavailableintegerstring-Chart configuration parameter

Network Policy(7)

ParameterTypeDefaultDescription
networkPolicy.enabledboolean-Chart configuration parameter
networkPolicy.annotationsobject-Chart configuration parameter
networkPolicy.ingressFromarray-Chart configuration parameter
networkPolicy.egress.enabledboolean-Chart configuration parameter
networkPolicy.egress.allowDNSboolean-Chart configuration parameter
networkPolicy.egress.extraToarray-Chart configuration parameter
networkPolicy.egress.extraEgressarray-Chart configuration parameter

Monitoring(6)

ParameterTypeDefaultDescription
monitoring.servicePortinteger-Chart configuration parameter
monitoring.serviceMonitor.enabledboolean-Chart configuration parameter
monitoring.serviceMonitor.annotationsobject-Chart configuration parameter
monitoring.serviceMonitor.intervalstring-Chart configuration parameter
monitoring.serviceMonitor.labelsobject-Chart configuration parameter
monitoring.serviceMonitor.namespaceSelectorobject-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

Extra Manifests(1)

ParameterTypeDefaultDescription
extraManifestsarray-Chart configuration parameter

Test(1)

ParameterTypeDefaultDescription
testobject-Chart configuration parameter

Postgresql(1)

ParameterTypeDefaultDescription
postgresqlobject-Chart configuration parameter