Skip to content

Kubernetes Deployment

The Helm chart is published as an OCI artifact on GHCR. Its source is in helm/bizon-platform/ in the repository.

Terminal window
KEY=$(python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
helm install bizon oci://ghcr.io/bizon-data/charts/bizon-platform \
--set security.encryptionKey="$KEY"

With the defaults, you get the API, one worker, the UI and a bundled Postgres StatefulSet. Without an ingress, port-forward the UI service. It listens on 8080:

Terminal window
kubectl port-forward svc/bizon-bizon-platform-ui 3000:8080
# http://localhost:3000

With the release name bizon, resources are named bizon-bizon-platform-{api,worker,ui,postgresql}. Upgrade with helm upgrade bizon oci://ghcr.io/bizon-data/charts/bizon-platform -f values.yaml, and pass the same encryption key every time.

ComponentImage
API and workerghcr.io/bizon-data/bizon-platform
UIghcr.io/bizon-data/bizon-platform-ui
Bundled Postgrescgr.dev/chainguard/postgres

Images are built for amd64 and arm64 on every push to main, and tagged latest and sha-<short sha>. The chart defaults to latest. Pin api.image.tag, worker.image.tag and ui.image.tag to a sha- tag for repeatable deploys.

postgresql: # bundled StatefulSet
enabled: true
image: { repository, tag, pullPolicy }
auth: { database: bizon_platform, username: bizon, password, existingSecret }
storage: { size: 10Gi, storageClass }
resources: {}
externalDatabase: # used when postgresql.enabled=false
host: ""
port: 5432
database: bizon_platform
username: bizon
password: ""
existingSecret: ""
sslMode: prefer
api: # same keys for worker and ui
image: { repository, tag, pullPolicy }
replicaCount: 1
resources: {}
podAnnotations: {}
nodeSelector: {}
tolerations: []
affinity: {}
service: { type: ClusterIP, port: 8000 } # ui.service.port is 8080
worker:
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
security:
encryptionKey: "..." # ships with a dev key: override it
existingEncryptionKeySecret: ""
adminPassword: ""
existingAdminPasswordSecret: ""
config:
debug: false
workerPollInterval: 2
logRetentionDays: 30
customSourcesDir: /custom_sources
instanceName: Bizon
instanceDescription: Data pipeline orchestration platform
corsAllowedOrigins: [http://localhost:5173, http://localhost:3000]
gitSync:
enabled: false
repoUrl: ""
branch: main
path: custom_sources
token: ""
existingTokenSecret: ""
webhookSecret: ""
existingWebhookSecret: ""
storage:
outputs: { size: 10Gi, storageClass: "", accessMode: ReadWriteOnce }
customSources: { size: 1Gi, storageClass: "", accessMode: ReadWriteOnce }
ingress:
enabled: false
className: ""
annotations: {}
hosts:
- host: bizon.local
paths: [{ path: /, pathType: Prefix }]
tls: []
global: { imagePullSecrets: [] }
serviceAccount: { create: true, name: "", annotations: {} }
podSecurityContext: { fsGroup: 1000 }
securityContext: { runAsNonRoot: true, runAsUser: 1000, allowPrivilegeEscalation: false, capabilities: { drop: [ALL] } }

The repository also has values-production.yaml, an example with an external database, worker autoscaling, ReadWriteMany storage and a TLS ingress.

Unless you point at existing Secrets, the chart creates:

SecretKeys
<fullname>-secretsencryption-key, admin-password, git-token
<fullname>-postgresql (bundled DB) or <fullname>-external-dbpostgres-password

To use your own, create a Secret with the same key name and reference it:

ValueRequired key
security.existingEncryptionKeySecretencryption-key
security.existingAdminPasswordSecretadmin-password
gitSync.existingTokenSecretgit-token
gitSync.existingWebhookSecretgit-webhook-secret
postgresql.auth.existingSecret / externalDatabase.existingSecretpostgres-password
Terminal window
kubectl create secret generic bizon-encryption \
--from-literal=encryption-key="$KEY"
postgresql:
enabled: false
externalDatabase:
host: postgres.example.com
database: bizon_platform
username: bizon
existingSecret: bizon-db # key: postgres-password

The chart builds DATABASE_URL as postgresql+asyncpg://user:password@host:port/database. externalDatabase.sslMode is not used in that URL.

The API pod has an init container that runs alembic upgrade head before the API starts. There is no separate migration job.

ingress:
enabled: true
className: nginx
hosts:
- host: bizon.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: bizon-tls
hosts: [bizon.example.com]

For each host, the chart routes /api to the API service and the listed paths to the UI service.

Scale workers with worker.replicaCount, or set worker.autoscaling.enabled: true to create a CPU and memory HorizontalPodAutoscaler. Keep api.replicaCount at 1: every API pod runs its own scheduler.

The API and the workers share two PVCs:

PVCMountHolds
<fullname>-outputs/data/outputsRun logs and file destination outputs
<fullname>-custom-sources/custom_sourcesCustom sources

They default to ReadWriteOnce, which only works while every API and worker pod lands on the same node. With several nodes, set storage.*.accessMode: ReadWriteMany and an RWX storage class.

Probes are fixed in the templates:

  • API: liveness and readiness on GET /api/health. It returns 200 even when the database is down.
  • UI: nginx’s /health.
  • Worker: liveness checks that the worker process is running.
  • Encryption key. values.yaml ships a hardcoded development key. Always set security.encryptionKey to your own Fernet key, or use existingEncryptionKeySecret. If you set it to an empty string, the chart generates a random value on every render, so an upgrade would make stored configs unreadable.
  • UI port. The UI service and container listen on 8080, not 80.
  • Metrics. There is no metrics endpoint and no ServiceMonitor. The Prometheus annotations in values-production.yaml point at /api/metrics, which doesn’t exist.