Hello, I see that when using k8s as an executor. I would like to set up default pod nodeSelector and toleration using a config file specified through -c
option in the command line when calling nextflow run
. Here is the k8s scoped configuration
k8s {
pod = [
nodeSelector: 'purpose=nextflow',
toleration: [
[
key:'purpose',
operator:'Equal',
value:'nextflow',
effect:'NoSchedule'
]
]
]
}
However, it seems nextflow cannot pick up this configuration. The same configuration works if defined inside a process such as the following
process Test {
pod = [
[
nodeSelector: 'purpose=nextflow'
],
[
toleration: [
key:'purpose',
operator:'Equal',
value:'nextflow',
effect:'NoSchedule'
]
]
]
container "ubuntu:latest"
output:
stdout
script:
"""
echo "Hello World!"
"""
}
I would like to know whether there is an error in my configuration or this is an expected behaviour. I am using the latest nextflow verion 23.10.1.5891