GKE credentials
Seqera uses Google credentials to access your GKE cluster. The Google service account in the credentials must have access to the cluster. See Service account role.
GKE compute environments do not support Google credentials that use Workload Identity Federation. The credentials must be a service account JSON key.
Create a service account key
To authenticate using a service account key, create a service account JSON key file:
- In the Google Cloud navigation menu, select IAM & Admin > Service Accounts.
- Select the email address of the service account.
- Select Keys > Add key > Create new key.
- Select JSON as the key type.
- Select Create.
Google Cloud downloads a JSON file to your computer. It contains the credential you need to configure the compute environment in Seqera.
Seqera accepts only service account keys ("type": "service_account"). Seqera rejects other Google credential files, such as external_account files, and keys with a non-Google token_uri or a universe_domain other than googleapis.com. If Seqera rejects the key of an existing credential, the credential stops working and is marked INVALID. Replace the key to restore it.
Add the service account key in Seqera
- In your workspace, go to Credentials and add new credentials. You can also select + next to the Credentials drop-down when you create a compute environment.
- Enter a name for the credentials, for example, GKE Credentials, and for Provider, select Google.
- Paste the contents of the JSON file in the Service account key field.
- Select Add.
Next step
Give the service account access to the cluster, then create the compute environment.