Skip to main content

Certification track: Professional Cloud DevOps Engineer (PDE)

Temporal on GKE Autopilot

Temporal on GKE Autopilot

Temporal is an open-source workflow orchestration engine used by organisations such as Stripe, Netflix, Coinbase, and HashiCorp to build reliable distributed applications. This module deploys Temporal on GKE Autopilot on top of the App_GKE foundation, which provisions and manages the shared Google Cloud and Kubernetes infrastructure.

This guide focuses on the cloud services Temporal uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics common to every GKE application — Workload Identity, ingress, autoscaling, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_GKE foundation guide rather than repeating them here.


What Temporal costs on RAD, and how that compares​

Temporal on RAD's GKE Autopilot module costs about US$136.37 a month in a Google Cloud project you own, plus a one-time 110-credit module fee (US$11, or 99 credits in a RAD-managed project, 10% lower). There is no Cloud Run variant — Temporal's server and worker processes need long-lived gRPC connections and Kubernetes primitives Cloud Run does not provide — so GKE Autopilot is the only way RAD deploys it. If you only need Temporal occasionally — a workflow prototype, an evaluation before committing production workloads to it — a RAD-managed project can be deleted and restored within 30 days for a handful of credits (under US$1) instead of paying for it to sit idle. See Pause it for free, below. Figures are as at 8 October 2026; sources are listed at the end of this section.

What you pay on RAD​

In a Google Cloud project you ownIn a project RAD manages for you
Module fee, once per deployment110 credits (US$11 at the top-up price)99 credits (10% lower)
Build timeAbout 3-6 credits per buildThe same
Google Cloud running costBilled by Google to your own billing account, about US$136.37 a month for the default configuration (table below)Metered hourly in credits; RAD publishes 93 credits a day, about 2,790 a month
Who owns whatYou own the project and its billing; RAD deploys and updates itRAD owns the project, with guardrails, quotas and budget alerts; you get console access, and a minimum purchased balance is held in reserve

10 credits cost US$1 on a one-off top-up, and less on a monthly plan. In a project RAD manages, the database and network are shared by every application in the project, so a second application does not add a second set of them.

Default running cost in your own project (us-central1, Google list prices):

Resource (module default)Per month
GKE Autopilot pod, 2x vCPU / 4 GiBUS$79.35
Cloud SQL for PostgreSQL, 1 vCPU / 3.75 GB, zonal, 10 GB SSDUS$51.02
Cloud NAT and networkingUS$5.00
Cloud Storage (add-ons, backups)US$1.00
GKE cluster management feeshared across every GKE app in the project; $0 if this is your only cluster, else ~73
TotalUS$136.37

How it compares​

  • Temporal Cloud, the official hosted service, prices differently from a flat monthly fee: it's pay-as-you-go, starting at $50 per million actions (with volume discounts down to $25 per million) plus storage at $0.042/GB-hour active and $0.00105/GB-hour retained, and no base monthly charge. New accounts get $150 in credit for 90 days (source: temporal.io/pricing). That usage-based model can be cheaper than RAD's flat running cost at very low workflow volume, and more expensive at scale — the two aren't directly comparable without knowing your own action count.
  • A self-managed comparison: Hetzner CPX22 (2 vCPU/4GB) runs about $24/month, a DigitalOcean 2 vCPU/4GB Droplet is the same $24/month, and a GCP Compute Engine e2-standard-2 (2 vCPU/8GB) is about $49/month — cheaper, but you would then run the Temporal server, its database, and the operational burden of keeping a workflow engine available yourself.
  • Temporal's own licensing is free either way — the real choice is a flat infrastructure cost on RAD against Temporal Cloud's metered-by-action pricing, or doing the operations work yourself on a VPS.

Pause it for free: delete a RAD-managed project, restore it when you need it​

If Temporal runs in a project RAD manages for you, deleting the whole project unlinks its billing first, then asks Google to delete the project outright — Google's own 30-day recoverable soft delete. Unlike deleting one module, this does not tear down Cloud SQL or the compute resource one by one: the whole project simply stops, and nothing is charged while it waits, because billing is already unlinked.

Restoring, within 30 days and only by the project's owner, asks Google to undelete the project and reattaches its billing account, then asks you to run Update on each deployment to confirm everything came back. Because nothing was individually destroyed, that Update finds the same resources already there — it is a check, not a rebuild, and an Update never charges the module fee again. This costs only a handful of credits (under US$1) in total for a typical 2-3-deployment chain.

What this needs: you must own the project (not one RAD only manages billing for), you must restore it yourself within 30 days — after that Google deletes it for good — and restoring is admitted like creating a new project, so your purchased credit balance must still clear the tier's floor (100 credits for the sandbox tier most study/demo use fits). Google says most services are fully working again within 36 hours of a restore.

One real gap: nightly backups are written to a bucket inside the project, and that bucket has Cloud Storage's soft-delete explicitly turned off, so it is very likely gone as soon as you delete the project — even though the project itself is recoverable for 30 days. If your workflow history matters to you, copy a backup out (to Google Drive, or a bucket outside the project) before deleting. For a default install with nothing irreplaceable in it, this does not matter.

Pay only while you use it, the other way: delete and redeploy​

In your own project, or once the 30-day restore window has passed, the alternative is to delete Temporal outright and redeploy it later. A redeploy costs the module fee again, plus the builds — roughly 115 credits (about US$11.50) in your own project, or 104 credits in a RAD-managed one.

Deleting saves money only once Temporal would otherwise sit unused long enough to clear that redeploy cost against its own daily running cost — against the own-project total above (about US$4.55 a day), that works out to about 3 days or more, or about 2 days or more in a RAD-managed one (93 credits a day). Most of the running cost here is the database and the GKE pod; they stop only when nothing else in the project uses them, so deleting Temporal while something else shares the project saves only this app's own compute part.

Keep data first: nightly backups go to a bucket inside the deployment and are deleted with it, so copy the latest backup out before deleting if you want to keep it.

Lab sessions and Managed Environments​

  • Lab sessions, for training: a trainer runs a session for a class. Each participant gets the app in their own Google Cloud project for 15 minutes to 24 hours, within an allowance the trainer sets. Either the trainer funds every place, or each participant pays for their own. Everything is deleted when the session ends and unused credits go back to the trainer.
  • Managed Environments, for consultancies: a partner runs the app for a client from a ring-fenced wallet it funds, and settles with the client directly. If the wallet runs low, billing pauses and the data is kept, so nobody receives an unexpected charge. At the end the partner hands the project over and the deployments become the client's own.
  • Credits can be bought in more than 20 currencies, including XAF, XOF, NGN, GHS, KES and ZAR, by card, bank transfer or mobile money.

Sources (8 October 2026): Google Cloud Billing Catalog API list prices; radmodules.dev/pricing for RAD's own fees and daily-credit estimates; Delete and restore projects for the pause/restore mechanics; temporal.io/pricing for Temporal Cloud's usage-based pricing.

1. Overview​

Temporal runs as a Go application using the official temporalio/auto-setup all-in-one image, which starts all four Temporal services — Frontend, History, Matching, and Worker — in a single pod and handles PostgreSQL schema initialisation automatically on first boot. The deployment wires together a focused set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeGKE AutopilotAll-in-one pod, 2 vCPU / 4 GiB by default
DatabaseCloud SQL for PostgreSQLTwo databases: primary persistence + visibility; accessed via private IP, no Auth Proxy sidecar
SecretsSecret ManagerAuto-generated database password
IngressCloud Load BalancingClusterIP (internal) by default; LoadBalancer for external SDK workers
Advanced visibilityElasticsearch (optional)Full-text workflow search and custom search attributes

Sensible defaults worth knowing up front:

  • PostgreSQL is the only supported database. Temporal's architecture requires PostgreSQL; MySQL is not used. The auto-setup image connects directly via the Cloud SQL private IP — no Auth Proxy sidecar is deployed.
  • All four Temporal services run in one pod. Frontend (gRPC on port 7233), History, Matching, and Worker share the same CPU and memory allocation.
  • Schema initialisation is automatic. temporalio/auto-setup creates both databases and runs schema migrations on first start. No separate init job is required. A generous TCP startup probe (30 s initial delay, 10 failure threshold at a 30 s period — a 5-minute window) accommodates Autopilot node provisioning plus schema setup time.
  • num_history_shards is permanently immutable. This value is written into the database schema on first deploy and cannot be changed without wiping and re-initialising all workflow data. Default is 4 (dev/demo); use 512 or higher for production.
  • service_type defaults to ClusterIP. SDK workers connect over the cluster network. Change to LoadBalancer only if SDK workers run outside the cluster.
  • Elasticsearch is optional. Without it, standard workflow search is powered by the PostgreSQL visibility database. Enabling Elasticsearch adds full-text search and custom search attributes but requires a reachable Elasticsearch 7.x or 8.x cluster.

2. Google Cloud Services & How to Explore Them​

All commands assume you have run gcloud container clusters get-credentials <cluster> --region <region> --project <project> and that PROJECT, REGION, and NAMESPACE are set. The namespace and other identifiers are reported in the deployment Outputs.

A. GKE Autopilot — the Temporal workload​

Temporal pods are scheduled on Autopilot, which bills for the CPU/memory the pods actually request. The deployment runs the temporalio/auto-setup image, which launches all four Temporal services in a single container.

  • Console: Kubernetes Engine → Workloads → select the Temporal workload to see pods, revisions, and events. Kubernetes Engine → Services & Ingress shows the Service.
  • CLI:
    kubectl get pods,svc -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" deploy/<service-name> --tail=100
    kubectl describe pod -n "$NAMESPACE" -l app=<service-name>

See App_GKE for how Autopilot, scaling, and the workload type are managed.

B. Cloud SQL for PostgreSQL​

Temporal stores all workflow execution state in a managed Cloud SQL for PostgreSQL instance. Two databases are created:

  • Primary persistence database — workflow state, task queues, namespace metadata, timers, and activity records.
  • Visibility database — running workflow execution records used for search and filtering in the Temporal Web UI and via tctl.

The Temporal server connects to Cloud SQL directly via the private IP (no Auth Proxy sidecar). TLS is required by Cloud SQL and is enabled in the Temporal configuration automatically.

  • Console: SQL → select the instance for connections, backups, flags, and metrics.
  • CLI:
    gcloud sql instances list --project "$PROJECT"
    gcloud sql instances describe <instance-name> --project "$PROJECT"
    # Open an interactive session to inspect schemas and data:
    gcloud sql connect <instance-name> --user=<db-user> --project "$PROJECT"

The instance name, database names, user, and the Secret Manager secret for the password are all surfaced in the Outputs. For the connection model, automated backups, and password rotation see App_GKE.

C. Secret Manager​

The Temporal database password is generated automatically and stored as a Secret Manager secret injected into the pod at runtime; it is never exposed in plain text.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT"
    gcloud secrets versions access latest --secret=<secret-name> --project "$PROJECT"

The secret name is in the Outputs as temporal_db_password_secret_id. See App_GKE for the Secret Store CSI integration.

D. Networking & ingress​

By default the Temporal Frontend gRPC service is a ClusterIP and is only reachable from inside the cluster on port 7233. SDK workers deployed on the same GKE cluster connect using the temporal_frontend_address output directly.

To expose Temporal externally, set service_type = "LoadBalancer" and optionally reserve_static_ip = true for a stable address. A custom domain with a Google-managed certificate can also be enabled.

  • Console: Kubernetes Engine → Services & Ingress; Network services → Load balancing; VPC network → IP addresses.
  • CLI:
    kubectl get svc -n "$NAMESPACE"
    gcloud compute addresses list --project "$PROJECT"

See App_GKE for custom domains, CDN, and static IP details.

E. Elasticsearch (optional — advanced visibility)​

When enable_elasticsearch = true, Temporal replaces the PostgreSQL visibility database with Elasticsearch as the advanced visibility store, enabling full-text workflow search and custom search attributes. The temporalio/auto-setup image auto-creates the visibility index (temporal_visibility_v1 by default) on first start.

  • Console: If using Elasticsearch_GKE, Kubernetes Engine → Workloads.
  • CLI:
    # Check Elasticsearch cluster health (from within the cluster):
    kubectl exec -n "$NAMESPACE" deploy/<service-name> -- \
    curl -s http://<es-host>:9200/_cluster/health | python3 -m json.tool

F. Cloud Logging & Monitoring​

Pod stdout/stderr flow to Cloud Logging; GKE and Cloud SQL metrics flow to Cloud Monitoring. Optional uptime checks and alert policies are available.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud logging read 'resource.type="k8s_container" AND resource.labels.namespace_name="'"$NAMESPACE"'"' \
    --project "$PROJECT" --limit 50

3. Temporal Application Behaviour​

  • First-deploy database setup. Temporal_GKE hardcodes initialization_jobs = [] — no Kubernetes Job runs before the server pod starts. The Temporal PostgreSQL role and both databases are created directly by Temporal_Common's google_sql_user/google_sql_database Terraform resources via the Cloud SQL Admin API. The temporalio/auto-setup image then runs all schema migrations on its own first start (see Temporal_Common §6 for the full breakdown, including the temporal-db-init.sh and schema-init.sh bootstrapping scripts that ship with the modules but are not currently wired into any Job).
  • Schema initialisation on every start. auto-setup detects the current schema version at startup. If the schema is already up-to-date, startup proceeds immediately. If pending migrations exist, they are applied before any Temporal services begin accepting connections.
  • Upgrading Temporal. Update application_version to the target tag. The auto-setup image applies pending schema migrations automatically on next startup. For large deployments, review the Temporal release notes for breaking schema changes before updating.
  • Temporal Web UI. Deployed automatically by default. deploy_temporal_ui defaults to true, and temporal.tf auto-builds a temporalio/ui service pointed at the Frontend service on port 7233, exposed via an external LoadBalancer, and merged ahead of any caller-supplied additional_services. Set deploy_temporal_ui = false to disable it; use additional_services for any further companion services.
  • Temporal namespaces. Temporal uses its own internal namespace concept (separate from Kubernetes namespaces). The default Temporal namespace is created automatically by auto-setup. Additional namespaces can be created with:
    kubectl exec -n "$NAMESPACE" deploy/<service-name> -- \
    temporal operator namespace create my-namespace
  • Connecting SDK workers. SDK workers connect to the Temporal Frontend gRPC address. Use the temporal_frontend_address output directly for workers inside the cluster. For workers outside the cluster, set service_type = "LoadBalancer" and use service_external_ip:7233.
  • Health probes. TCP probes are used for both startup and liveness checks because Temporal Frontend exposes gRPC (not HTTP/1.1) on port 7233. The startup probe allows up to 5 minutes (10 attempts × 30-second period) for schema initialisation to complete.

4. Configuration Variables​

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for Temporal are listed; every other input is inherited from App_GKE with its standard behaviour and defaults.

Group 1 — Project & Identity​

VariableDefaultDescription
project_id(required)Target Google Cloud project.
regionus-central1Region for the workload and regional resources.

Group 2 — Deployment Environment​

VariableDefaultDescription
tenant_iddemoShort suffix that makes resource names unique per environment.
support_users[]Emails granted project access and monitoring alerts.
resource_labels{}Labels applied to all resources for cost/ownership tracking.

Group 3 — Application Identity​

VariableDefaultDescription
application_nametemporalBase name for resources. Do not change after first deploy.
application_display_nameTemporalFriendly name shown in the Console.
application_description(set)Workload description annotation.
application_version1.25.0Temporal server image tag. Pin to a specific version; schema migrations must be completed before upgrading.

Group 4 — Runtime & Scaling​

VariableDefaultDescription
deploy_applicationtrueSet false to provision databases and secrets without deploying pods.
cpu_limit2000mCPU per pod; all four Temporal services share this allocation.
memory_limit4GiMemory per pod; all four services share this allocation.
min_instance_count1Minimum replicas. Must be ≥ 1 — Temporal requires at least one running pod to process timers and retries.
max_instance_count1Maximum replicas.
container_port7233Temporal Frontend gRPC port (informational — the service port is hardcoded to 7233).
container_protocolh2cHTTP/2 cleartext — required for gRPC. Do not change.
enable_image_mirroringtrueMirror the Temporal image from Docker Hub into Artifact Registry.
enable_vertical_pod_autoscalingfalseLet Autopilot tune resource requests automatically.

Group 5 — Environment Variables & Secrets​

VariableDefaultDescription
environment_variables{}Extra non-secret settings merged with the Temporal server configuration. Override built-in defaults with caution.
secret_environment_variables{}Map of env var → Secret Manager secret name.

Group 6 — GKE Backend & Cluster​

VariableDefaultDescription
service_typeClusterIPUse ClusterIP for cluster-internal SDK workers (recommended). Use LoadBalancer only if SDK workers run outside the cluster.
workload_typenull (Deployment)Temporal is stateless — Deployment is appropriate.
session_affinityNoneNo sticky routing required for gRPC.
gke_cluster_name""Target cluster name. Leave empty for auto-discovery.
namespace_name""Kubernetes namespace. Leave empty to auto-generate.
enable_network_segmentationfalseCreate NetworkPolicy resources to restrict traffic.
deployment_timeout1800Seconds Terraform waits for the rollout. The default covers Autopilot node provisioning plus schema initialisation on first deploy.

Group 7 — StatefulSet​

Not required for Temporal. All durable state lives in Cloud SQL PostgreSQL. Setting stateful_pvc_enabled = true is not recommended — see App_GKE for PVC options.

Group 8 — Resource Quota​

VariableDefaultDescription
enable_resource_quotafalseCap namespace CPU/memory/object counts.
quota_memory_requests / quota_memory_limits""Must use binary units (4Gi, 8192Mi) — bare integers are read as bytes and block all scheduling.
quota_max_pods20Maximum pods in the namespace.
quota_max_services10Maximum Services in the namespace.
quota_max_pvcs5Maximum PVCs in the namespace.

Group 9 — Reliability Policies​

VariableDefaultDescription
enable_pod_disruption_budgettrueProtect availability during node upgrades (recommended for production).
pdb_min_available1Minimum pods available during disruptions.
enable_topology_spreadfalseSpread pods across zones.

Group 10 — Observability & Health​

VariableDefaultDescription
startup_probe_configTCP on port 723310-attempt window (5 minutes at a 30 s period) for schema init on first start.
health_check_configTCP on port 7233Liveness probe; 60 s initial delay.
uptime_check_configdisabledOptional Cloud Monitoring uptime check.
alert_policies[]Optional metric alert policies.

Group 11 — Workload Automation​

VariableDefaultDescription
initialization_jobs[]Additional Jobs to run before the server pod. Hardcoded to [] by Temporal_GKE — no built-in Job runs; the DB role and databases are created directly by Temporal_Common's Terraform resources.
cron_jobs[]Scheduled Kubernetes CronJobs.
deploy_temporal_uitrueDeploy the Temporal Web UI (temporalio/ui) automatically, wired to the Frontend service and exposed via an external LoadBalancer.
temporal_ui_version2.34.0Image tag for the Temporal Web UI.
additional_services[]Sidecar or helper GKE services. Merged with the auto-deployed Temporal Web UI (controlled by deploy_temporal_ui).

Group 12 — CI/CD & GitHub Integration​

Standard App_GKE Cloud Build / Cloud Deploy integration — see App_GKE. Key inputs: enable_cicd_trigger, github_repository_url, github_token, enable_cloud_deploy, enable_binary_authorization.

Group 13 — Filesystem (NFS)​

NFS is not required for Temporal. See App_GKE for NFS options if needed for companion workloads.

Group 14 — Cloud Storage & Artifact Registry​

Temporal requires no Cloud Storage buckets. Artifact Registry is used for the mirrored Temporal image. See App_GKE.

VariableDefaultDescription
create_cloud_storagefalseOff by default — Temporal does not use GCS.
max_images_to_retain7Artifact Registry image retention count.
manage_storage_kms_iam / enable_artifact_registry_cmekfalseCMEK options.

Group 15 — Database & Temporal-Specific Settings​

VariableDefaultDescription
sql_instance_name""Existing Cloud SQL PostgreSQL instance name. Leave empty for auto-discovery from Services_GCP.
temporal_database_name""Primary persistence database name. Leave empty to auto-generate from the deployment resource prefix (recommended).
temporal_visibility_database_name""Visibility database name. Leave empty to auto-generate as <prefix>_visibility.
temporal_db_user""PostgreSQL username. Leave empty to auto-generate from the deployment resource prefix.
num_history_shards4Immutable after first deploy. Number of history shards (power of two). Use 4 for dev/demo, 512 or higher for production.
enable_elasticsearchfalseEnable Elasticsearch for advanced visibility (full-text search, custom search attributes).
elasticsearch_url""Elasticsearch endpoint. Required when enable_elasticsearch = true. Format: host:9200 or http://host:9200.
elasticsearch_versionv7Must match the actual cluster version: v7 for Elasticsearch 7.x, v8 for 8.x.
elasticsearch_index_visibilitytemporal_visibility_v1Elasticsearch index name. Auto-created by auto-setup on first start.

Group 16 — Secret Rotation​

VariableDefaultDescription
enable_auto_password_rotationfalseRotate the database password on a schedule. The pod must be restarted after rotation to pick up the new secret.
rotation_propagation_delay_sec90Seconds to wait after rotation before restarting pods.

Group 17 — Backup & Maintenance​

VariableDefaultDescription
backup_schedule0 2 * * *Automated backup cron (UTC).
backup_retention_days7Retention; raise to 30–90 for production/compliance.

Group 18 — Custom SQL Scripts​

Not applicable for Temporal. See App_GKE.

Group 19 — Custom Domain, Static IP & Networking​

VariableDefaultDescription
enable_custom_domaintrueProvision Ingress for custom hostnames + managed certificate.
application_domains[]Hostnames to serve.
reserve_static_iptrueStable external IP across redeploys (only useful with LoadBalancer).

Group 20 — Identity-Aware Proxy (IAP)​

VariableDefaultDescription
enable_iapfalseIAP is not recommended for Temporal gRPC — use enable_network_segmentation instead.
iap_authorized_users / iap_authorized_groups[]Who may access.
iap_oauth_client_id / iap_oauth_client_secret""Required when IAP is enabled (sensitive).
iap_support_email""Shown on the OAuth consent screen.

Group 21 — Cloud Armor​

VariableDefaultDescription
enable_cloud_armorfalseAttach a Cloud Armor (WAF) policy to the Ingress backend.
admin_ip_ranges[]CIDRs allowed privileged access.
cloud_armor_policy_name(set)Policy name.

Group 22 — VPC Service Controls & Audit Logging​

VariableDefaultDescription
enable_vpc_scfalseEnforce a VPC-SC perimeter (requires organization_id).
vpc_cidr_ranges / vpc_sc_dry_run(set)Access level CIDRs / dry-run mode.
enable_audit_loggingfalseDetailed Cloud Audit Logs.

5. Outputs​

These values are returned on a successful deployment and are the quickest way to locate and explore the running resources.

OutputDescription
service_nameKubernetes Service name for the Temporal server.
namespaceKubernetes namespace where Temporal is deployed.
service_urlCluster-internal service URL (ClusterIP by default).
service_external_ipExternal LoadBalancer IP (non-null only when service_type = "LoadBalancer").
temporal_frontend_addressgRPC address for SDK workers — <service-url>:7233.
temporal_db_userPostgreSQL username for Temporal server connections.
temporal_db_nameName of the primary persistence database.
temporal_visibility_db_nameName of the visibility database.
temporal_db_password_secret_idSecret Manager secret ID holding the database password.
storage_bucketsCreated Cloud Storage buckets (empty — Temporal does not use GCS).
container_imageContainer image used for the Temporal server deployment.
kubernetes_readyWhether the cluster endpoint is available and workloads are deployed.
network_name / network_exists / regionsVPC network, presence, available regions.
container_registryArtifact Registry repository name.
monitoring_enabled / monitoring_notification_channelsMonitoring status and channels.
initialization_jobs / db_import_jobNames of the setup and (optional) import jobs.
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
cicd_enabled / cicd_configurationCI/CD status and details.
github_repository_url / github_repository_owner / github_repository_nameGitHub repository details.
artifact_registry_repository / cloudbuild_trigger_name / cloudbuild_trigger_idRegistry and build trigger.
vpc_sc_enabled / vpc_sc_perimeter_name / vpc_sc_dry_run_modeVPC-SC status.
audit_logging_enabled / artifact_registry_cmek_enabledAudit logging and CMEK status.

6. Configuration Pitfalls & Sensible Defaults​

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

SettingSensible valueRiskConsequence if wrong
num_history_shards4 (dev/demo), 512+ (prod)CriticalPermanently immutable after first deploy. Changing it requires wiping all workflow data and re-initialising from scratch.
container_protocolh2cCriticalTemporal uses gRPC; changing to http1 breaks all SDK worker connections and the Web UI.
temporal_database_name / temporal_visibility_database_nameset onceCriticalImmutable after first deploy. Changing after deployment orphans the schema, causing Temporal to start with an uninitialised database.
enable_elasticsearch with elasticsearch_urlset togetherCriticalAn unreachable Elasticsearch endpoint when enable_elasticsearch = true causes Temporal to crash on startup — it does not fall back to PostgreSQL visibility.
quota_memory_requests / _limitsbinary unitsCriticalBare integers are bytes and block all scheduling.
min_instance_count1HighScale-to-zero (0) causes missed timers, stalled activity retries, and dropped workflow progress.
cpu_limit2000mHighAll four Temporal services share this allocation. Below 1000m, scheduling latency rises sharply and timer fires are delayed, directly impacting workflow SLAs.
memory_limit4GiHighTemporal holds shard state in memory; insufficient memory causes OOM kills during workflow processing.
temporal_db_userauto-generatedHighChanging after deploy without updating Cloud SQL grants and Secret Manager causes all server connections to fail.
elasticsearch_versionmatch actual clusterHighA mismatch causes incompatible index mappings, missing workflow entries, and visibility write failures.
elasticsearch_urlhost:port or http://host:portHighRequired when enable_elasticsearch = true; an empty value causes immediate startup crash.
service_typeClusterIP (internal)MediumExposing Temporal Frontend as LoadBalancer without network policy allows any external host to submit workflows.
enable_pod_disruption_budgettrueMediumWithout PDB, GKE node upgrades can evict all Temporal pods simultaneously, interrupting all in-flight workflow executions.
backup_schedule0 2 * * *MediumAn empty or disabled schedule leaves no recovery path for a Cloud SQL failure.
pdb_min_available vs min_instance_countleave headroomMedium1/1 can stall node upgrades (single pod cannot be evicted).
stateful_pvc_enabledfalseMediumTemporal stores all state in Cloud SQL; PVCs add no benefit and can cause Autopilot scheduling failures.

For the foundation behaviour referenced throughout — IAM and Workload Identity, autoscaling, ingress and certificates, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_GKE. Temporal-specific database and secret provisioning shared across deployments is described in Temporal_Common.

Need RAD to do something it does not do yet? Request it on the roadmap, or vote on what is already there.