Temporal Workers can be deployed to Kubernetes, with specific guidance on containerization, Kubernetes Deployment manifests, and the use of ConfigMaps and Secrets. The post emphasizes leveraging standard Kubernetes patterns, the Temporal Worker Controller for advanced version management, and Worker Versioning for safe deployments. It also details autoscaling strategies for Temporal Workers on Kubernetes, highlighting the inadequacy of standard CPU/memory metrics and recommending Task Queue Backlog, Schedule-to-Start latency, and Worker Task slots as more effective signals. KEDA-based autoscaling is presented as a streamlined solution. For the Temporal Service, official Helm charts are provided, with recommendations to disable bundled dependencies and use external ones for production. Planning capacity and tuning for production involves iterative load testing and avoiding CPU throttling. The post also touches on the need for graceful shutdown of workers.
All Temporal trails