Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Jan 20, 2024
1 parent 842cea4 commit 1c9c916
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,11 @@ The following settings are available:
:::
: If you trace the hostname, activate this option (default: `false`).

`k8s.fuseDevicePlugin`
: :::{versionadded} 24.01.0-edge
:::
: The FUSE device plugin to be used when enabling Fusion in unprivileged mode (default: `['nextflow.io/fuse': 1]`).

`k8s.httpConnectTimeout`
: :::{versionadded} 22.10.0
:::
Expand Down
17 changes: 17 additions & 0 deletions docs/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,23 @@ Then the pipeline execution can be launched using the usual run command and spec
nextflow run <YOUR PIPELINE> -work-dir s3://<YOUR-BUCKET>/scratch
```

:::{note}
When using Fusion, pods will run as *privileged* by default.
:::

To use Fusion with without the need for escalating privileges, it is required to install in the Kubernetes cluster the
Nextflow [FUSE device plugin](https://github.com/nextflow-io/k8s-fuse-plugin) and add in your Nextflow configuration the following
setting:

```
fusion {
privileged = false
}
```

To use a custom FUSE device plugin, specify it via the setting `k8s.fuseDevicePlugin`. See
the {ref}`Kubernetes configuration section<config-k8s>` for details.

### Running in a pod

Nextflow can be executed directly from a pod running in a Kubernetes cluster. In these cases you will need to use the plain Nextflow `run` command and specify the `k8s` executor and the required persistent volume claim in the `nextflow.config` file as shown below:
Expand Down

0 comments on commit 1c9c916

Please sign in to comment.