FireboltEngine requires object storage for managed tablet data. The Firebolt Operator does not support local filesystem storage mode, so an engine does not start until you point it at object storage. On a production cluster running on Google Cloud, that backing store is a Google Cloud Storage (GCS) bucket.
With GCS as the backing store for table data, durability does not depend on the per-pod data volumes mounted to each engine node. Even a complete loss of those volumes does not cause data loss, because the authoritative copy of managed table data lives in the bucket.
You configure GCS on the engine through spec.customEngineConfig.storage. The engine reads Google Cloud credentials from the pod’s Google identity, which you provide with Workload Identity Federation for GKE.
Prerequisites
Before you begin, ensure that you have the following installed and configured:- A Kubernetes cluster (v1.28+) running on Google Kubernetes Engine (GKE) with Workload Identity Federation enabled.
- The Firebolt Operator installed in the cluster. See Installation.
- A
FireboltInstancein theReadyphase. See the Quickstart. kubectlcommand-line tool configured to access your cluster.helm(v3+) installed on your local machine.gcloudcommand-line tool configured for your project.- A Google Cloud project with permissions to create GCS buckets and IAM service accounts.
Use Google Cloud Storage
The following examples use a GCS bucket namedfirebolt-engine-demo-data in the project my-project, but you can choose any name you like.
Create a GCS bucket
Create a service account and grant bucket access
Create a Google service account for the engine and grant it permission to manage objects in the bucket. Use Workload Identity Federation for GKE to bind this service account to the Kubernetes ServiceAccount that the engine pods run as. The next step shows how to attach that ServiceAccount to the engine.Configure the engine to use GCS
Point the engine at the bucket throughspec.customEngineConfig.storage and run its pods under the ServiceAccount that carries the Google identity.
The engine merges customEngineConfig into its rendered configuration, so the storage block sets the storage backend (type), the storage scheme (api_scheme), and the bucket name (bucket_name). For Google Cloud Storage, set type to gcs. The default scheme for gcs is gs://.
The following manifest creates the ServiceAccount and a FireboltEngine that references it. The engine runs the operator’s default image, so no FireboltEngineClass is required. Replace the service account email and bucket name with your values, and reference an existing Ready instance through instanceRef.
iam.gke.io/gcp-service-account.
For the full set of engine fields, including customEngineConfig and serviceAccountName, see the FireboltEngine CRD reference.
Confirm that object storage is working
To confirm that managed storage works, create a table and check that new prefixes appear in your bucket. Engine pods follow the name pattern<engine>-g<generation>-<index>, so the first pod of generation 0 for my-engine is my-engine-g0-0.
Restrict external access with an intermediary service account
The bucket you configure understorage holds an engine’s managed tablet data. The engine reaches it with the engine pod’s own Google identity. Queries that read from or write to external locations, such as external tables that point at a different bucket, follow a separate credential path.
By default, external access uses the engine pod’s own identity. That identity is tied to the engine deployment, so it is not a convenient identity for the owner of an external bucket to reference when they grant access.
An intermediary service account gives external access a stable identity instead. When you configure one, the engine impersonates the intermediary service account for external access, rather than using its own pod identity. Because the service account is stable and known ahead of time, you can share it with third parties and reference it in bucket IAM policies, including on Google Cloud projects outside your own organization.
How the credential chain works
The engine selects the external credential path based on what you configure:- Intermediary service account set. The engine impersonates the intermediary service account for external access. The service account is the stable identity you grant access to external data.
- Intermediary service account not set. The engine uses its own pod identity for external access.
storage bucket always uses the engine pod’s own identity. The intermediary service account applies only to external locations.
Configure the intermediary service account
Create the intermediary Google service account and grant the engine’s identity permission to impersonate it. The engine’s identity needsroles/iam.serviceAccountTokenCreator on the intermediary service account, and the intermediary service account needs only the permissions required to reach the external data.
Set the intermediary service account ID under storage.gcp.intermediary_service_account_id:
storage.gcp block is valid only when type is gcs.