For temporal worker, it would be very nice to have autoscale & per resource per task ability.
Use k8s “deployment” type worker, auto scale base on task/worker metric is not enough. For different task input it’s resource requirement may be different. And auto scale is hard to avoid killing pod which is running task (which run a really long task for a while).
A idea pattern may be to use k8s “job” pattern, inpsect task input, running resource cost estimator and submit a k8s job type worker (poll & complete task). But it seems hard to achieve in temporal.