ByteChef LogoByteChef
Use ByteChefSelf-HostedInstallation

Kubernetes

Deploy the ByteChef server on a Kubernetes cluster with the Helm chart from the repository.

ByteChef ships a Helm chart for deploying the single-node application on a Kubernetes cluster. The chart lives in the repository at kubernetes/helm/bytechef.

Prerequisites

  • A Kubernetes cluster and kubectl configured to reach it.
  • Helm 3.
  • A reachable PostgreSQL 15+ database. The chart does not deploy PostgreSQL - use a managed database or an in-cluster instance you manage separately.

Get the chart

Clone the repository (the chart is not yet published to a Helm registry):

git clone https://github.com/bytechefhq/bytechef.git
cd bytechef/kubernetes/helm/bytechef

Configure values

The chart is driven by values.yaml. Set at least the image tag, the database connection, and the encryption and remember-me secrets. Configuration is split into two blocks under env:

  • env.normal - non-sensitive environment variables rendered into a ConfigMap.
  • env.secret - sensitive environment variables rendered into a Secret.

A minimal override file (my-values.yaml) looks like this:

image:
  repository: docker.bytechef.io/bytechef/bytechef
  tag: latest

env:
  normal:
    BYTECHEF_ENCRYPTION_PROVIDER: PROPERTY
    BYTECHEF_PUBLIC_URL: "https://bytechef.example.com"
    SERVER_PORT: 8080

  secret:
    BYTECHEF_DATASOURCE_URL: "jdbc:postgresql://postgres.example.com:5432/bytechef"
    BYTECHEF_DATASOURCE_USERNAME: "bytechef"
    BYTECHEF_DATASOURCE_PASSWORD: "<db-password>"
    BYTECHEF_ENCRYPTION_PROPERTY_KEY: "<stable-encryption-key>"
    BYTECHEF_SECURITY_REMEMBER_ME_KEY: "<stable-remember-me-key>"

Values you pass are merged with the chart's values.yaml, which already sets BYTECHEF_ENCRYPTION_PROVIDER: PROPERTY, BYTECHEF_FEATURE_FLAGS_0: ff-1057, BYTECHEF_SIGN_UP_ACTIVATION_REQUIRED: false and placeholder mail settings. Override the mail variables (BYTECHEF_MAIL_*) with your SMTP server's values, or sign-up and invitation emails are not delivered.

Use BYTECHEF_ENCRYPTION_PROVIDER: PROPERTY with a fixed BYTECHEF_ENCRYPTION_PROPERTY_KEY on Kubernetes. The default FILESYSTEM provider writes a key to the pod's local disk, which does not survive pod restarts and is not shared across replicas - either would leave stored connection credentials undecryptable. See Encryption of stored credentials for the full reasoning.

Install

helm install bytechef . -f my-values.yaml --namespace bytechef --create-namespace

After the release installs, Helm prints (via the chart's notes) the command to reach the application based on your service.type. With the default ClusterIP, port-forward to it:

kubectl --namespace bytechef port-forward svc/bytechef 8080:8080

Then open http://127.0.0.1:8080 and click Create account to register the first user.

Exposing the instance

The chart includes optional resources for production exposure:

ConcernValues keyNotes
Service typeservice.typeDefaults to ClusterIP; set to NodePort or LoadBalancer to expose it directly. service.port defaults to 8080.
Ingressingress.enabledDisabled by default. Set ingress.enabled: true, then configure ingress.className, ingress.hosts, and ingress.tls. Set BYTECHEF_PUBLIC_URL to the external URL.
Autoscalingautoscaling.enabledDisabled by default. When enabled it creates a HorizontalPodAutoscaler between minReplicas and maxReplicas on targetCPUUtilizationPercentage.
ReplicasreplicaCountStatic replica count when autoscaling is off (default 1).

The chart sets no message broker, session store or cache variables, so its defaults run the in-memory broker. Every replica the chart creates runs the coordinator, and more than one coordinator requires Enterprise Edition. Before you raise replicaCount or enable autoscaling, add the settings described in Running multiple instances under env.normal and env.secret: a shared encryption key, a shared message broker, shared file storage, a shared session store and cache provider, a clustered scheduler, and coordinated schema migrations.

Health probes

The chart wires the Kubernetes probes to ByteChef's Actuator health endpoints out of the box:

  • Startup / liveness: GET /actuator/health/liveness on port 8080.
  • Readiness: GET /actuator/health/readiness on port 8080.

These are the probes documented under Monitoring. The startup probe allows up to 60 minutes (180 failures at 20-second intervals) for the first start, which covers schema migrations.

Upgrading

Update the image.tag in your values file and run:

helm upgrade bytechef . -f my-values.yaml --namespace bytechef

Schema migrations run automatically on startup. Back up the database first, and see Upgrades and backups for upgrade and backup guidance.

How is this guide?

Last updated on

On this page