1
0
镜像自地址 https://github.com/devcm-repo/helm-charts.git 已同步 2026-06-06 04:11:05 +00:00
文件
helm-charts/charts/aiapi
T

aiapi

Deploys New API and CLIProxyAPI. PostgreSQL and Valkey are provided through upstream Bitnami Helm chart dependencies by default.

helm dependency update ./charts/aiapi
helm install aiapi ./charts/aiapi

For production, override at least:

  • newapi.sessionSecret
  • postgresql.auth.password
  • cliproxyapi.config
  • newapi.frontendBaseUrl

Use the bundled dependencies:

postgresql:
  enabled: true
  auth:
    username: newapi
    password: change-me
    database: newapi

valkey:
  enabled: true
  architecture: standalone
  auth:
    enabled: false

Use external PostgreSQL and Valkey/Redis by disabling the dependencies and providing the New API environment variables as values:

postgresql:
  enabled: false
valkey:
  enabled: false

newapi:
  database:
    dsn: postgres://newapi:password@postgres.example.com:5432/newapi?sslmode=require
  cache:
    redisConnString: redis://:password@valkey.example.com:6379/0

For production, prefer storing the complete connection strings in an existing Kubernetes Secret:

postgresql:
  enabled: false
valkey:
  enabled: false

newapi:
  database:
    existingSecret:
      name: aiapi-external-connections
      key: SQL_DSN
  cache:
    existingSecret:
      name: aiapi-external-connections
      key: REDIS_CONN_STRING

newapi.database.* renders SQL_DSN; newapi.cache.* renders REDIS_CONN_STRING. The older newapi.sqlDsn and newapi.redisConnString values still work for compatibility.

cliproxyapi.ingress is disabled by default. If exposing it under /cpa, add the rewrite annotations required by your Ingress controller and set remote-management.allow-remote in cliproxyapi.config intentionally.