<p>I'm new to nextflow. We would like to build our workflow using nextflow and have nextflow deploy the workflow to a large mulit-institution Kubernetes cluster that we use.</p>
<p>In this cluster we don't have admin permission, we have a namespace we work in. Also, pods in our cluster have limited resources, but jobs have unlimited resources.</p>
<p>In looking at <a href="https://www.nextflow.io/docs/latest/kubernetes.html" rel="nofollow noreferrer">the documentation</a> for nextflow + kubernetes and it says that the workflow runs under a Kubernetes pod, which raises red flags for me because of the limitation on pods in our cluster.</p>
<p>Is there a way to execute nextflow workflows as a kubernetes jobs instead of a pod? What are my options in this area?</p>

<p>There might be a new feature with nextflow 22.04. Quoting Ben Sherman's <a href="https://github.com/seqeralabs/nf-k8s-best-practices/blob/master/feature-evaluation.md" rel="nofollow noreferrer">nextflow k8s best practices</a> page:</p>
<blockquote>
<p>In Nextflow v22.04 and later, the <code>k8s</code> executor can be configured to use Jobs instead of Pods directly.</p>
</blockquote>
