castai-dbo

by Cast AI

Helm chartv0.26.0Verified publisher

Umbrella chart for CAST AI Database Optimizer components.

About this chart

castai-dbo

0.26.0

Umbrella chart for CAST AI Database Optimizer components.

Maintainers

NameEmailUrl
CAST AIhttps://cast.ai

Requirements

RepositoryNameVersion
https://castai.github.io/helm-chartsdb-agent(castai-db-agent)0.29.0
https://castai.github.io/helm-chartsdb-optimizer(castai-db-optimizer)0.80.2
https://castai.github.io/helm-chartsdb-proxy(castai-db-proxy)0.38.0

Usage

helm repo add castai-helm https://castai.github.io/helm-charts
helm repo update

helm upgrade --install castai-dbo castai-helm/castai-dbo \
  --namespace castai-agent --create-namespace \
  -f values.yaml

See below for the required values for each component.

Note: db-proxy and db-optimizer are mutually exclusive — enable only one of them.

Example: db-optimizer + db-agent

db-optimizer:
  enabled: true
  apiKey: "<API_KEY>"
  organizationID: "<ORG_ID>"
  cacheGroupID: "<CACHE_GROUP_ID>"
  protocol: "PostgreSQL"
  endpoints:
    - name: "primary"
      hostname: "<DB_HOST>"
      port: 5433
      targetPort: 5432
      servicePort: 5433

db-agent:
  enabled: true
  apiKey: "<API_KEY>"
  organizationID: "<ORG_ID>"
  cacheGroupID: "<CACHE_GROUP_ID>"
  database:
    host: "<DB_HOST>"
    username: "<DB_USER>"
    password: "<DB_PASSWORD>"

Example: db-proxy + db-agent

db-proxy:
  enabled: true
  apiKey: "<API_KEY>"
  organizationID: "<ORG_ID>"
  proxyID: "<PROXY_ID>"
  endpoints:
    - address: "<DB_HOST>:<DB_PORT>"
      readonly: false

db-agent:
  enabled: true
  apiKey: "<API_KEY>"
  organizationID: "<ORG_ID>"
  cacheGroupID: "<CACHE_GROUP_ID>"
  database:
    host: "<DB_HOST>"
    username: "<DB_USER>"
    password: "<DB_PASSWORD>"

Values

KeyTypeDefaultDescription
db-agent.enabledboolfalse
db-optimizer.enabledboolfalse
db-proxy.enabledboolfalse

Deploy castai-dbo with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-dbo on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcastai-dbo is pinned at v0.26.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply