Skip to main content

Create a GKE compute environment

Create a GKE compute environment on an existing GKE cluster. For everything you need in place first, see the checklist.

Prerequisites

You need the following:

caution

Your Seqera compute environment uses resources that you may be charged for in your Google Cloud account. See Cloud costs for guidelines to manage cloud resources and prevent unexpected costs.

Create the compute environment​

  1. In a Seqera workspace, select Compute Environments, then select Add compute environment.

  2. Enter a descriptive name for this environment, for example, Google Kubernetes Engine (europe-west1).

  3. From the Platform drop-down, select Google GKE.

  4. Under Storage, select either Fusion storage (recommended) or Legacy storage. With the Fusion v2 virtual distributed file system, you can access your Google Cloud-hosted data (gs:// URLs) and do not need to configure a shared file system in your Kubernetes cluster. See Fusion v2.

  5. From the Credentials drop-down, select your GKE credentials. To add credentials, see GKE credentials.

  6. Select the Location of your GKE cluster.

    caution

    GKE clusters can be either regional or zonal. For example, us-west1 identifies the United States West-Coast region, which has three zones: us-west1-a, us-west1-b, and us-west1-c.

    Seqera Platform auto-completion only shows regions. If you use a zonal GKE cluster, edit this field manually.

  7. Select or enter the Cluster name of your GKE cluster.

  8. Specify the Namespace created in the cluster preparation instructions. This is tower-nf by default.

  9. Specify the Head service account created in the cluster preparation instructions. This is tower-launcher-sa by default.

    note

    If you enable Fusion v2 (Fusion storage in step 4), the head service account must have access to the Cloud Storage bucket specified as your work directory.

  10. Specify the Storage claim created in the cluster preparation instructions. The storage claim is a scratch file system for Nextflow pipelines. The provided examples call it tower-scratch.

    note

    The Storage claim is not needed when Fusion v2 is enabled.

  11. Apply Resource labels to the cloud resources consumed by this compute environment. Workspace default resource labels are prefilled.

  12. Optional: Expand Staging options and Environment variables to add pre- and post-run scripts, Nextflow configuration, or environment variables. See Common compute environment options.

  13. Configure any advanced options described in the next section, as needed.

  14. Select Add to finalize the compute environment setup.

Advanced options​

Seqera Platform compute environments for GKE include advanced options for storage and work directory paths, resource allocation, and pod customization.

  • The Storage mount path is the file system path where the Storage claim is mounted (default: /scratch).
  • The Work directory is the file system path used as a working directory by Nextflow pipelines. It must be the storage mount path (default) or a subdirectory of it.
  • The Compute service account is the service account that Nextflow uses to submit tasks (default: the default account in the given namespace).
  • The Pod cleanup policy determines when Seqera deletes the run's Nextflow head pod. On success (the default) deletes it when the run succeeds, Always deletes it regardless of outcome, and Never keeps it. This policy does not delete task pods. See Kubernetes pods remain after a run ends.
  • Use Custom head pod specs to provide custom options for the Nextflow workflow pod, such as nodeSelector and affinity. For example:
spec:
nodeSelector:
disktype: ssd
  • Use Custom service pod specs to provide custom options for the compute environment pod. See the previous example.
  • Use Head job CPUs and Head job memory to specify the hardware resources allocated for the Nextflow workflow pod. Head job memory is set in MiB, with a minimum of 3584 MiB. If you leave it empty, the pod has no memory request.

Next steps​

To run pipelines in your GKE compute environment, see Launch pipelines.