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 healthruntime 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 SyncedVerified 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
Temporal 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 |
Common Annotations(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| commonAnnotations | object | - | Chart configuration parameter |
Annotations(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| annotations | object | - | Chart configuration parameter |
Image Pull Secrets(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| imagePullSecrets | array | - | Chart configuration parameter |
Container Ports(2)
| Parameter | Type | Default | Description |
|---|---|---|---|
| containerPorts.web | integer | - | Chart configuration parameter |
| containerPorts.metrics | integer | - | Chart configuration parameter |
Server(38)
| Parameter | Type | Default | Description |
|---|---|---|---|
| server.image.repository | string | - | Chart configuration parameter |
| server.image.tag | string | - | Chart configuration parameter |
| server.image.pullPolicy | string | - | Chart configuration parameter Allowed: AlwaysIfNotPresentNever |
| server.numHistoryShards | integer | 512 | Chart configuration parameter |
| server.versionCheckDisabled | boolean | - | Chart configuration parameter |
| server.dynamicConfig | object | - | Chart configuration parameter |
| server.extraEnv | array | - | Chart configuration parameter |
| server.extraEnvFrom | array | - | Chart configuration parameter |
| server.podAnnotations | object | - | Chart configuration parameter |
| server.podLabels | object | - | Chart configuration parameter |
| server.podSecurityContext | object | - | Chart configuration parameter |
| server.securityContext | object | - | Chart configuration parameter |
| server.components.frontend.enabled | boolean | - | Chart configuration parameter |
| server.components.frontend.replicaCount | integer | - | Chart configuration parameter |
| server.components.frontend.rpcPort | integer | - | Chart configuration parameter |
| server.components.frontend.httpPort | integer | - | Chart configuration parameter |
| server.components.frontend.membershipPort | integer | - | Chart configuration parameter |
| server.components.frontend.resources | object | - | Chart configuration parameter |
| server.components.history.enabled | boolean | - | Chart configuration parameter |
| server.components.history.replicaCount | integer | - | Chart configuration parameter |
| server.components.history.rpcPort | integer | - | Chart configuration parameter |
| server.components.history.membershipPort | integer | - | Chart configuration parameter |
| server.components.history.resources | object | - | Chart configuration parameter |
| server.components.matching.enabled | boolean | - | Chart configuration parameter |
| server.components.matching.replicaCount | integer | - | Chart configuration parameter |
| server.components.matching.rpcPort | integer | - | Chart configuration parameter |
| server.components.matching.membershipPort | integer | - | Chart configuration parameter |
| server.components.matching.resources | object | - | Chart configuration parameter |
| server.components.worker.enabled | boolean | - | Chart configuration parameter |
| server.components.worker.replicaCount | integer | - | Chart configuration parameter |
| server.components.worker.rpcPort | integer | - | Chart configuration parameter |
| server.components.worker.membershipPort | integer | - | Chart configuration parameter |
| server.components.worker.resources | object | - | Chart configuration parameter |
| server.nodeSelector | object | - | Chart configuration parameter |
| server.tolerations | array | - | Chart configuration parameter |
| server.affinity | object | - | Chart configuration parameter |
| server.topologySpreadConstraints | array | - | Chart configuration parameter |
| server.terminationGracePeriodSeconds | integer | - | Chart configuration parameter |
Schema(11)
| Parameter | Type | Default | Description |
|---|---|---|---|
| schema.enabled | boolean | - | Chart configuration parameter |
| schema.useHelmHooks | boolean | - | Chart configuration parameter |
| schema.activeDeadlineSeconds | integer | - | Chart configuration parameter |
| schema.backoffLimit | integer | - | Chart configuration parameter |
| schema.initialDelaySeconds | integer | - | Chart configuration parameter |
| schema.waitImage.repository | string | - | Chart configuration parameter |
| schema.waitImage.tag | string | - | Chart configuration parameter |
| schema.waitImage.pullPolicy | string | - | Chart configuration parameter Allowed: AlwaysIfNotPresentNever |
| schema.expectedVersion | string | - | Chart configuration parameter |
| schema.visibilityExpectedVersion | string | - | Chart configuration parameter |
| schema.resources | object | - | Chart configuration parameter |
Database(10)
| Parameter | Type | Default | Description |
|---|---|---|---|
| database.mode | string | - | Chart configuration parameter Allowed: postgresqlexternal |
| database.host | string | - | Chart configuration parameter |
| database.port | integer | - | Chart configuration parameter |
| database.database | string | - | Chart configuration parameter |
| database.visibilityDatabase | string | - | Chart configuration parameter |
| database.username | string | - | Chart configuration parameter |
| database.pluginName | string | - | Chart configuration parameter Allowed: postgres12postgres12_pgx |
| database.maxConns | integer | - | Chart configuration parameter |
| database.maxIdleConns | integer | - | Chart configuration parameter |
| database.maxConnLifetime | string | - | Chart configuration parameter |
Credentials(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| credentials.existingSecret | string | - | Chart configuration parameter |
| credentials.secretName | string | - | Chart configuration parameter |
| credentials.passwordKey | string | - | Chart configuration parameter |
Web(16)
| Parameter | Type | Default | Description |
|---|---|---|---|
| web.enabled | boolean | - | Chart configuration parameter |
| web.replicaCount | integer | - | Chart configuration parameter |
| web.image.repository | string | - | Chart configuration parameter |
| web.image.tag | string | - | Chart configuration parameter |
| web.image.pullPolicy | string | - | Chart configuration parameter Allowed: AlwaysIfNotPresentNever |
| web.extraEnv | array | - | Chart configuration parameter |
| web.extraEnvFrom | array | - | Chart configuration parameter |
| web.podAnnotations | object | - | Chart configuration parameter |
| web.podLabels | object | - | Chart configuration parameter |
| web.resources | object | - | Chart configuration parameter |
| web.securityContext | object | - | Chart configuration parameter |
| web.podSecurityContext | object | - | Chart configuration parameter |
| web.nodeSelector | object | - | Chart configuration parameter |
| web.tolerations | array | - | Chart configuration parameter |
| web.affinity | object | - | Chart configuration parameter |
| web.topologySpreadConstraints | array | - | Chart configuration parameter |
Admin Tools(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| adminTools.enabled | boolean | - | Chart configuration parameter |
| adminTools.annotations | object | - | Chart configuration parameter |
| adminTools.image.repository | string | - | Chart configuration parameter |
| adminTools.image.tag | string | - | Chart configuration parameter |
| adminTools.image.pullPolicy | string | - | Chart configuration parameter Allowed: AlwaysIfNotPresentNever |
| adminTools.resources | object | - | Chart configuration parameter |
Frontend Service(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| frontendService.type | string | - | Chart configuration parameter Allowed: ClusterIPNodePortLoadBalancer |
| frontendService.port | integer | - | Chart configuration parameter |
| frontendService.httpPort | integer | - | Chart configuration parameter |
| frontendService.annotations | object | - | Chart configuration parameter |
| frontendService.ipFamilyPolicy | string | - | Chart configuration parameter Allowed: SingleStackPreferDualStackRequireDualStack |
| frontendService.ipFamilies | array | - | Chart configuration parameter |
Web Service(5)
| Parameter | Type | Default | Description |
|---|---|---|---|
| webService.type | string | - | Chart configuration parameter Allowed: ClusterIPNodePortLoadBalancer |
| webService.port | integer | - | Chart configuration parameter |
| webService.annotations | object | - | Chart configuration parameter |
| webService.ipFamilyPolicy | string | - | Chart configuration parameter Allowed: SingleStackPreferDualStackRequireDualStack |
| webService.ipFamilies | array | - | Chart configuration parameter |
Ingress(5)
| Parameter | Type | Default | Description |
|---|---|---|---|
| ingress.enabled | boolean | - | Chart configuration parameter |
| ingress.ingressClassName | string | - | Chart configuration parameter |
| ingress.annotations | object | - | Chart configuration parameter |
| ingress.hosts | array | - | Chart configuration parameter |
| ingress.tls | array | - | Chart configuration parameter |
Gateway API(3)
| Parameter | Type | Default | Description |
|---|---|---|---|
| gatewayAPI.enabled | boolean | - | Chart configuration parameter |
| gatewayAPI.httpRoutes | array | - | Chart configuration parameter |
| gatewayAPI.grpcRoutes | array | - | 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 |
Pdb(4)
| Parameter | Type | Default | Description |
|---|---|---|---|
| pdb.enabled | boolean | - | Chart configuration parameter |
| pdb.annotations | object | - | Chart configuration parameter |
| pdb.minAvailable | integerstring | - | Chart configuration parameter |
| pdb.maxUnavailable | integerstring | - | Chart configuration parameter |
Network Policy(7)
| Parameter | Type | Default | Description |
|---|---|---|---|
| networkPolicy.enabled | boolean | - | Chart configuration parameter |
| networkPolicy.annotations | object | - | Chart configuration parameter |
| networkPolicy.ingressFrom | array | - | Chart configuration parameter |
| networkPolicy.egress.enabled | boolean | - | Chart configuration parameter |
| networkPolicy.egress.allowDNS | boolean | - | Chart configuration parameter |
| networkPolicy.egress.extraTo | array | - | Chart configuration parameter |
| networkPolicy.egress.extraEgress | array | - | Chart configuration parameter |
Monitoring(6)
| Parameter | Type | Default | Description |
|---|---|---|---|
| monitoring.servicePort | integer | - | Chart configuration parameter |
| monitoring.serviceMonitor.enabled | boolean | - | Chart configuration parameter |
| monitoring.serviceMonitor.annotations | object | - | Chart configuration parameter |
| monitoring.serviceMonitor.interval | string | - | Chart configuration parameter |
| monitoring.serviceMonitor.labels | object | - | Chart configuration parameter |
| monitoring.serviceMonitor.namespaceSelector | object | - | 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 |
Extra Manifests(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| extraManifests | array | - | Chart configuration parameter |
Test(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| test | object | - | Chart configuration parameter |
Postgresql(1)
| Parameter | Type | Default | Description |
|---|---|---|---|
| postgresql | object | - | Chart configuration parameter |
No schema parameters match your search
Try searching for a different keyword or reset the filter.