The Kubernetes Task Scheduling extension allows a Druid cluster running on Kubernetes to schedule its tasks as Kubernetes Jobs instead of sending them to workers (middle managers or indexers).
More detailed documentation about how to configure and use the extension is available here