Spice.ai runs on Google Cloud Platform (GCP) on Kubernetes, serverless containers, or virtual machines. The container image and Helm chart are the same artifacts used in every other environment, so the choice of GCP service is a matter of operational fit rather than packaging.
For a complete list of GCP-compatible data connectors, AI models, and supported services, see GCP Integrations (opens in a new tab).
Run Spice on GKE (opens in a new tab) when the workload benefits from Kubernetes orchestration, multi-replica scale, or shared cluster tenancy. GKE pairs with the Spice Helm chart (opens in a new tab) and the Argo CD (opens in a new tab) or Flux (opens in a new tab) GitOps workflows.
The fastest path is gcloud. The example below creates a regional Standard cluster with Workload Identity (opens in a new tab) enabled — required for federated credentials to GCP services.
For burst or low-utilization workloads, use GKE Autopilot (opens in a new tab) — Google manages the nodes, billing is per-pod, and Workload Identity is enabled by default. For production, prefer Terraform for repeatable provisioning. The terraform-google-modules/kubernetes-engine (opens in a new tab) module is a common starting point.
The GCS connector (opens in a new tab) with gcs_application_default_credentials: true and BigQuery through ADBC (opens in a new tab) accept GCP credentials from Application Default Credentials (opens in a new tab). Cloud SQL through the PostgreSQL (opens in a new tab) or MySQL (opens in a new tab) connector does not read them: it signs in with a database user and password (pg_user and pg_pass, or mysql_user and mysql_pass). Use Workload Identity so pods receive scoped, short-lived tokens without static keys:
Reference the service account from the Helm release so pods inherit federated tokens via the standard ADC chain:
For declarative GitOps, swap this command for an Argo CD Application or a Flux HelmRelease pointing at the same chart. See the Argo CD (opens in a new tab) or Flux (opens in a new tab) guides for full manifests.
For stateful acceleration with Cayenne (the other file-based engines, DuckDB and SQLite, are deprecated in v2.4):
n2-standard-*-lssd, c3-standard-*-lssd, z3 series). Expose Local SSDs through GKE's Local SSD raw block / ephemeral storage (opens in a new tab) provisioner. Local SSDs do not survive node replacement, so pair with a refresh strategy or a re-hydration source. Local NVMe Storage (opens in a new tab) walks through the GKE setup step by step — the --local-nvme-ssd-block node pool, Google's provisioner manifests, the nvme-ssd-block class in the chart values, and verification.type: hyperdisk-balanced or hyperdisk-extreme).pd-ssd, premium-rwo) — use the built-in premium-rwo storage class only when Hyperdisk is unavailable in a region.filestore-csi) — not recommended for acceleration — use only for stateless shared artifacts that need ReadWriteMany. NFS latency negates the benefit of using a local accelerator.stateful.enabled: true and stateful.storageClass: <chosen-class> in values.yaml.:::tip[Spice.ai Enterprise]
For production stateful workloads, the Spice.ai Enterprise (opens in a new tab) Operator's SpicepodSet (opens in a new tab) provides per-replica StatefulSets with automatic PVC resizing, Workload-Identity-aware ServiceAccount annotations, and configurable update strategies. For distributed query execution across scheduler/executor tiers backed by Cloud Storage, see SpicepodCluster (opens in a new tab).
:::
To expose Spice externally, install the GKE Gateway controller (opens in a new tab) or use a Cloud Load Balancer Service (opens in a new tab):
For internal-only deployments, set Internal to bind to the cluster's VPC rather than a public IP.
The Spice Helm chart ships a PodMonitor resource for the Prometheus Operator (opens in a new tab). On GKE, Google Cloud Managed Service for Prometheus (opens in a new tab) is the common target — it ingests PodMonitor resources directly when managed collection (opens in a new tab) is enabled. Set monitoring.podMonitor.enabled: true and import the Spice Grafana dashboard (opens in a new tab) into Cloud Monitoring (opens in a new tab) or self-managed Grafana.
For comprehensive guidance, refer to the GKE documentation (opens in a new tab), GKE security best practices (opens in a new tab), and the Spice.ai Kubernetes Deployment Guide (opens in a new tab).
Cloud Run (opens in a new tab) is a serverless container platform suitable for HTTP-driven Spice.ai workloads that benefit from scale-to-zero and request-based autoscaling. Use it when a single managed container is sufficient and operating Kubernetes is not desired.
Create a service account with the IAM roles the Spicepod requires. Cloud Run attaches it to the service so the runtime authenticates via Application Default Credentials (opens in a new tab) without static keys:
Cloud Run pulls the Spice.ai container image (opens in a new tab) directly. Mount secrets from Secret Manager (opens in a new tab) and configure HTTP ingress on port 8090:
The comma-separated --args values are passed to spiced. The spiceai/spiceai image starts spiced with no arguments, and spiced then listens only on 127.0.0.1 on port 8090, which Cloud Run ingress cannot reach.
To run multiple replicas, give each replica its own acceleration. Cloud Run's writable file system is held in the instance's memory (opens in a new tab), so a file-mode acceleration and its temporary files count against the memory limit together with the runtime's own memory, and an instance that fills it crashes. Set the memory limit for both, or run larger accelerations on GKE with disk-backed storage. Do not point Cayenne at a Cloud Storage FUSE mount (opens in a new tab) shared between replicas: its metastore is a SQLite database, and Cloud Storage FUSE does not support file locking (opens in a new tab), so replicas that share the mount can corrupt it (see Metastore location (opens in a new tab)). To start new replicas from a shared copy, use acceleration snapshots (opens in a new tab).
Cloud Run scales by concurrent requests per instance (default 80 (opens in a new tab)). For background workloads (refresh schedules, streaming refresh, ingestion), set --min-instances 1 so the service does not scale to zero, and --no-cpu-throttling so the instance keeps its CPU between requests (background activity (opens in a new tab)). For long-running HTTP requests, tune --concurrency to match the runtime's request profile. The deployment above serves the HTTP API only: it sets --http and not --flight, so spiced listens for Arrow Flight on 127.0.0.1:50051, which Cloud Run ingress cannot reach. Run Arrow Flight clients against a deployment on GKE or Compute Engine.
Cloud Run uses startup and liveness probes (opens in a new tab) — point them at /health and /v1/ready. Each gcloud run deploy creates a new revision (opens in a new tab); use traffic splitting (opens in a new tab) for canary upgrades:
For more details, see the Cloud Run documentation (opens in a new tab) and the Spice.ai Docker Deployment Guide (opens in a new tab).
Deploy Spice directly on Compute Engine (opens in a new tab) for maximum control over the environment, GPU access, or large-memory machine types.
Manual VM deployment:
spice binary directly. See the installation guide (opens in a new tab).Automated deployment with Terraform or Deployment Manager:
cloud-init (opens in a new tab) to install Docker, pull the Spice.ai image (opens in a new tab), retrieve secrets from Secret Manager (opens in a new tab), and start the runtime.For detailed guidance, refer to the Compute Engine documentation (opens in a new tab), the Container-Optimized OS guide (opens in a new tab), and the Google provider for Terraform (opens in a new tab).
Most GCP services that Spice connects to accept explicit credentials through component parameters (for example, iceberg_gcs_credentials on the Iceberg connector (opens in a new tab)). When explicit credentials are not provided, Cloud Storage (gs://) access reads Application Default Credentials (opens in a new tab) in this order:
GOOGLE_APPLICATION_CREDENTIALS — path to a service account JSON key file. Common in local development; not recommended for production.gcloud CLI credentials — cached credentials from gcloud auth application-default login. Common during development.Spice does not support Workload Identity Federation (opens in a new tab) credential configuration files ("type": "external_account") for gs://, so a workload running outside GCP needs a service account key or another explicit credential. Iceberg tables on Cloud Storage are read through a separate storage client; see Cloud Storage authentication (opens in a new tab).
For services with explicit parameters (Cloud Storage HMAC, BigQuery service account JSON), prefer named credentials or Workload Identity over GOOGLE_APPLICATION_CREDENTIALS files in production.
:::note[IAM role bindings]
Regardless of the credential source, the principal must have the appropriate IAM role bindings (for example, roles/storage.objectViewer on a bucket, or roles/bigquery.dataViewer on a BigQuery dataset). When a Spicepod connects to multiple GCP services, the principal must have permissions across all of them.
:::
Spice.ai is not yet published to Google Cloud Marketplace (opens in a new tab) (coming soon). In the meantime, deploy using the spiceai/spiceai (opens in a new tab) container image or the Spice Helm chart (opens in a new tab).