castai-db-agent

by Cast AI

Helm chartv0.29.0Verified publisher

CAST AI DB agent deployment.

About this chart

castai-db-agent

CAST AI DB agent deployment.

Values

KeyTypeDefaultDescription
apiKeystring""Token to be used for authorizing access to the CAST AI API.
apiURLstring""URL to the CAST AI API endpoint.
cloudSqlProxy.autoIamAuthnbooltrueHave the proxy connect with Automatic IAM authentication
cloudSqlProxy.enabledboolfalseEnable Cloud SQL Proxy sidecar for GCP Cloud SQL connections
cloudSqlProxy.portint5432Port on which Cloud SQL Proxy will listen
cloudSqlProxy.privateIpboolfalseHave the proxy connect over private IP if connecting from a VPC-native GKE cluster
cloudSqlProxyImage.pullPolicystring"IfNotPresent"
cloudSqlProxyImage.repositorystring"gcr.io/cloud-sql-connectors/cloud-sql-proxy"
cloudSqlProxyImage.tagstring""
collectors.excludedDatabasesstring""Comma-separated list of databases to exclude from database auto-discovery (optional)
collectors.excludedSchemasstring""Comma-separated list of schemas to exclude from collection (optional)
collectors.indexes.runsEverystring"15m"Frequency in which existing indexes are collected
collectors.instanceConfigs.runsEverystring"15m"Frequency in which instance settings are collected
collectors.metadata.runsEverystring"15m"Frequency in which table metadata is collected
collectors.queries.runsEverystring"15m"Frequency in which query statistics are collected
database.autoDiscoveryDatabasestring"postgres"Database name to use for connecting to database instance for auto-discovering logical databases. This is only required for Postgres
database.credentialsSecretRefstring""Name of secret with database credentials (username and password). Not required when using useCloudSQLIAMAuth or useRDSIAMAuth with inline username.
database.hoststring""
database.passwordstring""Password for database authentication (not required when useCloudSQLIAMAuth or useRDSIAMAuth is true)
database.portint5432
database.protocolstring"postgres"Database protocol to use. Supported values: postgres, mysql.
database.sslModestring"require"SSL mode for database connection (Postgres only). Forced to "disable" when cloudSqlProxy is enabled.
database.useCloudSQLIAMAuthboolfalseEnable IAM authentication for database connection (GCP Cloud SQL IAM). Requires Workload Identity setup. See IAM_AUTH_SETUP.md for details.
database.useRDSIAMAuthboolfalseEnable IAM authentication for database connection (AWS RDS IAM). Requires IAM role with rds-db:connect permission.
database.usernamestring""Username for database authentication. For IAM auth, use the format: "[email protected]"
databaseInstanceIDstring""
gRPCEndpointstring""URL to the CAST AI API gRPC endpoint.
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/db-agent"
image.tagstring""
logLevelstring"info"
organizationIDstring""
serviceAccount.annotationsobject{}Annotations to add to the service account (e.g. for AWS IRSA: eks.amazonaws.com/role-arn: )
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, the chart name is used. If not set and create is false, "default" is used.

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy castai-db-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-db-agent 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-db-agent is pinned at v0.29.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