Skip to main content
Cube is the analytics engine used by CrewAI. It provides cost tracking, execution analytics, and provider usage metrics.

Prerequisites

Before enabling Cube, ensure the following:
  1. Wharf must be enabled: Wharf is enabled by default. If you disabled it with wharf.enabled: false, re-enable it for Cube to work. See Wharf OTLP Trace Collector.
  2. Object storage (recommended for production): Cubestore needs persistent storage. See Storage below.

Database

With internal PostgreSQL (postgres.enabled: true): The Helm chart automatically creates and configures the Cube database during installation. No manual steps required. With external PostgreSQL (postgres.enabled: false): You must manually create the Cube database before enabling. The database name should match cube.database (default: cube).
Cube requires the postgres_fdw extension. On most managed PostgreSQL services (AWS RDS, Google Cloud SQL, Azure) this extension is available by default. If your database administrator has restricted extension creation, they may need to run the following on the Cube database:
TLS/SSL for Managed Databases: If using a managed database service that enforces encrypted connections (such as Amazon RDS with rds.force_ssl=1 or Azure Database for PostgreSQL with require_secure_transport=ON), enable cube.databaseSsl: true. Leave it disabled for the in-cluster PostgreSQL deployment.

Storage

Cube automatically detects and reuses the storage backend already configured for your installation (STORAGE_SERVICE). No additional storage configuration is needed — Cube stores its data under a cubestore/ prefix in the same bucket or container. S3-Compatible Storage: When STORAGE_SERVICE: amazon and an endpoint is configured via AWS_ENDPOINT or cube.cubestore.storage.endpoint, Cube automatically uses S3-compatible mode (Cubestore’s “minio” driver, which works with any S3-compatible service, not just MinIO). Override Auto-Detection: Set cube.cubestore.storage.type explicitly to override auto-detection:
  • "s3" - Force AWS S3 (use for AWS-specific endpoints: VPC interface endpoints, FIPS, S3 Transfer Acceleration)
  • "minio" - Force S3-compatible mode (requires endpoint configuration)
  • "gcs" - Force Google Cloud Storage
  • "azure" - Force Azure Blob Storage

Local PVC (Evaluation Only)

PVC-based storage is for evaluation and development only.In Kubernetes, PersistentVolumeClaims with ReadWriteOnce access mode are bound to a single node. If the node is rescheduled or fails, cached data is lost and must be rebuilt. For production deployments, always use object storage.
To force local PVC storage instead of auto-detection:

Configuration

boolean
default:"false"
Enable or disable Cube.Values:
  • true - Deploy Cube (enables analytics)
  • false - Disable Cube (default)
string
default:"cube"
Database name used by the Cube service.Default: "cube"Must match: When using external PostgreSQL, the database with this name must exist and be accessible by the application user.

Image

string
default:""
Container registry hosting the Cube image.Default: "" (empty) - Automatically uses global.imageRegistry value
string
default:"proxy/crewai/crewai/cube"
Cube container image name.
string
default:"0.2.2"
Cube version to deploy.
string
default:"IfNotPresent"
Image pull policy.

Scaling

integer
default:"1"
Number of Cube API replicas.

Resources

object
Resource limits and requests for the Cube API pod.Defaults:
object
Resource limits and requests for the background worker pod.Defaults:

Cubestore

boolean
default:"false"
Connect to PostgreSQL over TLS. Required for managed databases that enforce encrypted connections, such as Amazon RDS with rds.force_ssl enabled.Leave false when using the in-cluster PostgreSQL deployment.
string
default:""
Container registry hosting the Cubestore image.Default: "" (empty) - Automatically uses global.imageRegistry value
string
default:"proxy/crewai/dockerhub/cubejs/cubestore"
Cubestore container image name.
string
default:"v1.8.11"
Cubestore version.
string
default:""
Storage backend override. When empty (default), auto-detected from STORAGE_SERVICE.Auto-Detection Behavior:
  • STORAGE_SERVICE: amazon without endpoint → s3
  • STORAGE_SERVICE: amazon with AWS_ENDPOINT or cube.cubestore.storage.endpoint → minio (S3-compatible)
  • STORAGE_SERVICE: google → gcs
  • STORAGE_SERVICE: microsoft → azure
Values:
  • "" - Auto-detect from STORAGE_SERVICE (recommended)
  • "s3" - Force AWS S3 (use for AWS-specific endpoints: VPC interface, FIPS, S3 Transfer Acceleration)
  • "minio" - Force S3-compatible storage (requires cube.cubestore.storage.endpoint or AWS_ENDPOINT)
  • "gcs" - Force Google Cloud Storage
  • "azure" - Force Azure Blob Storage
  • "local" - Force local PVC storage
When to Override:
  • Set to "s3" when using AWS-specific endpoints that should not be treated as S3-compatible
  • Set to "minio" to force S3-compatible mode regardless of AWS_ENDPOINT
string
default:""
S3-compatible storage endpoint URL for Cubestore.Default: "" (empty) - Falls back to AWS_ENDPOINT if setPurpose: Specifies an S3-compatible object storage endpoint specifically for Cube analytics. When set, Cubestore automatically uses S3-compatible mode.Fallback Behavior:
  • If cube.cubestore.storage.endpoint is empty, uses AWS_ENDPOINT value
  • If both are empty, uses standard AWS S3 regional endpoints
Priority: This Cube-specific endpoint takes precedence over the platform-wide AWS_ENDPOINT.When to Set:
  • Using S3-compatible storage exclusively for Cube (different from platform storage)
  • Separating Cube analytics storage from platform file storage
  • Using a dedicated endpoint for analytics workloads
S3-Compatible Services:
  • MinIO: "https://minio.company.com:9000"
  • Wasabi: "https://s3.wasabisys.com"
  • DigitalOcean Spaces: "https://nyc3.digitaloceanspaces.com"
  • Backblaze B2: "https://s3.us-west-002.backblazeb2.com"
  • Cloudflare R2: "https://abc123.r2.cloudflarestorage.com"
AWS-Specific Endpoints (Use storage.type: "s3" Override):
  • VPC Interface Endpoint: "https://bucket.vpce-0123.s3.us-east-1.vpce.amazonaws.com"
  • FIPS Endpoint: "https://s3-fips.us-gov-west-1.amazonaws.com"
  • S3 Transfer Acceleration: "https://s3-accelerate.amazonaws.com"
Important: When using an S3-compatible endpoint, cube.cubestore.storage.remoteDir must not be empty. Without a sub-path prefix, Cubestore cannot list its own uploads and pre-aggregations will fail to build.Example - S3-Compatible Storage:
Example - AWS VPC Endpoint (Keep AWS S3 Driver):
Leave Empty: To use AWS_ENDPOINT or standard AWS S3 endpoints (recommended for most deployments).
string
default:""
Override bucket name for Cube analytics storage.Default: "" (empty) - Uses platform storage bucket from AWS_BUCKET or GCS_BUCKETPurpose: Allows Cube to use a separate bucket from platform file storage. Useful for isolating analytics data or implementing different retention policies.When to Set:
  • Separating Cube analytics storage from platform file storage
  • Different bucket lifecycle policies for analytics data
  • Dedicated bucket for analytics workloads
Example:
Leave Empty: To use the same bucket as platform storage (recommended for most deployments).
string
default:""
Override AWS region for Cube analytics storage.Default: "" (empty) - Uses platform storage region from AWS_REGIONPurpose: Allows Cube to use a different region from platform file storage. Useful when separating analytics storage for compliance or performance reasons.When to Set:
  • Cube bucket is in a different region than platform storage
  • Compliance requirements mandate specific data residency for analytics
Example:
Leave Empty: To use the same region as platform storage (recommended for most deployments).
string
default:"cubestore"
Path prefix within the storage bucket.Default: "cubestore"Requirements:
  • Must NOT start with / — a leading slash causes S3 list-after-write failures
  • Must NOT be empty when using S3-compatible storage — without a sub-path, Cubestore cannot list its own uploads and pre-aggregations will never complete
Why Required for S3-Compatible Storage:Cubestore queries object storage for existing data files to coordinate pre-aggregation builds. S3-compatible implementations require a non-root prefix for list-after-write consistency. An empty remoteDir causes Cubestore to fail silently during pre-aggregation builds.Validation: The chart will fail installation if remoteDir is empty when using S3-compatible storage (auto-detected or explicit type: "minio").
boolean
default:"false"
Enable PVC-based local storage. Only used when storage.type is empty. See the storage warning above.
string
default:"10Gi"
PVC storage size.
integer
default:"2"
Number of Cubestore worker replicas.Default: 2 — Matches SaaS baseline. Increase for high query volume.
object
Resource limits and requests for the Cubestore router.Defaults:
object
Resource limits and requests for each Cubestore worker.Defaults:

Node Placement

object
default:"{}"
Node selector labels for Cube pod placement.Default: {} (no node restrictions)

Examples

Minimal

With Multiple Cubestore Workers

With External Managed Database (SSL Required)

With S3-Compatible Storage

With Separate Cube Storage Endpoint

Disabled (Default)