Fuzzball Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Deployment

After fulfilling the requirements, you are ready to deploy Fuzzball. Use the Kubernetes Operator tab for a multi-node, production-style deployment across server and compute nodes, or the Docker Compose tab for a single-host deployment suited to local development and testing.

Please select your environment.

The deployment takes place across two groups of nodes: an odd number of Server node(s) that run Fuzzball Orchestrate, and one or more Compute node(s) that run Fuzzball Substrate. This guide assumes one Server node and one Compute node; where a production-ready, high availability (HA) cluster differs, special instructions are called out inline.

Environment variables used in deployment

This guide is designed to be completed primarily through copy-and-paste instructions. Some values cannot be anticipated and are included as environment variables that you are expected to set. Be aware that you will switch from one node to another at various points, so variables need to be assigned again in the new environment.

The following variables are determined by your specific network configuration:

  • IP1: The first IP address in your metallb pool (e.g. 10.0.0.99). See the appendix on installing a minimal K8s environment for details.
  • NFS_SERVER_IP: The internal IP address of your NFS server (e.g. 10.0.0.3). If you serve NFS from your Server node, this is simply the internal IP address of the Server node. See the appendix on installing a minimal K8s for details.
  • REALM_ID: A UUID used to configure the Keycloak instance. Create it with the uuidgen command.
  • PUBLIC_INTERFACE: The literal name of the public interface — for instance, enp1s0.
  • INTERNAL_INTERFACE: The literal name of the internal interface — for instance, enp8s0.

The remaining variables relate to accessing CIQ Depot and downloading artifacts from the container registry:

  • DEPOT_USER: A username to access CIQ Depot, issued by your CIQ sales/support team once you subscribe to Fuzzball.
  • ACCESS_KEY: A token you receive from the CIQ sales/support team after subscribing to Fuzzball.
  • VERSION: The version of the Fuzzball Operator used for the deployment. You can find version information in Depot.
  • CHART: The URL of the Helm Chart used to deploy the Fuzzball Operator.
  • IMAGE: The URL of the image for the Fuzzball Operator.
  • OWNER_EMAIL: The email address of the Fuzzball organization owner used for login.
  • STORAGE_CLASS: The StorageClass used internally by K8s to support the Fuzzball cluster. Use longhorn if you installed Longhorn for a 3-node HA setup, or local-path if you installed Local Path Provisioner on a single server node (see StorageClass).

Server node: install the Fuzzball Operator

The Server node will run Fuzzball Orchestrate, which is deployed as a K8s operator. We must therefore begin by obtaining and installing the operator.

First, we need an access key to obtain artifacts from Depot. You will receive this key from the CIQ sales/support team upon subscribing to Fuzzball. Save it somewhere safe (with appropriate permission so that only you can access it).

Now you can use the Depot access key to login to the registry using Helm.

# DEPOT_USER="" # populate with your username for CIQ Depot

# ACCESS_KEY="" # populate with the Depot key obtained from the CIQ sales/support team
# helm registry login depot.ciq.com --username "${DEPOT_USER}" --password "${ACCESS_KEY}"

Once you have logged into the depot registry, you can install the Fuzzball operator. You can replace the VERSION below if you need a different version of Fuzzball to be installed. (You can find different Fuzzball versions by signing into Portal and looking at Fuzzball under “my products”.)

# VERSION="v4.4.0"

# CHART="oci://depot.ciq.com/fuzzball/fuzzball-images/helm/fuzzball-operator"

# STORAGE_CLASS="longhorn" # change this to local-path if you installed Local Path Provisioner

If your cluster enforces the Kubernetes Pod Security restricted profile by default, as CIS-hardened clusters do, create and label the operator’s namespace before installing the chart. Fuzzball pods need the baseline profile:

# kubectl create namespace fuzzball-system --dry-run=client -o yaml | kubectl apply -f -
# kubectl label namespace fuzzball-system pod-security.kubernetes.io/enforce=baseline

The operator labels these namespaces. substrate is labeled privileged. fuzzball-federate, fuzzball-database, fuzzball-identity, the monitoring namespace (default fuzzball-monitoring) and nfs-provisioner are labeled baseline. fuzzball is labeled baseline, or privileged when the CoreWeave provisioner is enabled, because that provisioner runs privileged substrate pods there. A namespace label takes precedence over the cluster default. If you labeled one of these namespaces by hand, remove your label before upgrading so the operator can set it.

The operator leaves ingress and cert-manager unlabeled; their pods are admitted under the cluster default. It also does not label the datadog namespace. If you enable Datadog, label that namespace privileged.

If you run your own Linkerd service mesh, install it with the Linkerd CNI plugin. Without it, Linkerd injects a linkerd-init container that needs the NET_ADMIN and NET_RAW capabilities, which the baseline profile does not allow.

# helm upgrade --install fuzzball-operator "${CHART}" \
  --namespace fuzzball-system --create-namespace \
  --version "${VERSION}" \
  --set "image.tag=${VERSION}" \
  --set "imagePullSecrets.name=repository-ciq-com" \
  --set "imagePullSecrets.inline.registry=depot.ciq.com" \
  --set "imagePullSecrets.inline.username=${DEPOT_USER}" \
  --set "imagePullSecrets.inline.password=${ACCESS_KEY}" \
  --set "storageClassName=${STORAGE_CLASS}"

After executing this command, you can check that the operator is installed properly with the following commands:

# kubectl get pvc -n fuzzball-system
NAME                                   STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
fuzzball-operator-controller-manager   Bound    pvc-dfc2f2c3-8df0-4ec8-8503-2d927b13402e   20Gi       RWO            longhorn       <unset>                 11s

This will show that the fuzzball-operator-controller-manager is Bound to a volume.

# kubectl get crd fuzzballorchestrate.deployment.ciq.com
NAME                                     CREATED AT
fuzzballorchestrate.deployment.ciq.com   2025-12-11T21:42:25Z

This command shows that a new custom resource has been defined.

# kubectl get pod -n fuzzball-system
NAME                                                    READY   STATUS    RESTARTS   AGE
fuzzball-operator-controller-manager-6dd9bd7f56-hnb9b   2/2     Running   0          81s

This will show that 2/2 pods instantiating the fuzzball-operator-controller-manager are running. (It might take a few minutes to complete, so don’t worry if there are initially 0/3 ready.)

You can also inspect the configuration of the operator with the following command:

# helm get values -n fuzzball-system fuzzball-operator
USER-SUPPLIED VALUES:
image:
  repository: depot.ciq.com/fuzzball/fuzzball-images/fuzzball-operator
  tag: v4.4.0
imagePullSecrets:
  inline:
    password: <YOUR_PASSWORD_HERE>
    registry: depot.ciq.com
    username: <YOUR_USERNAME_HERE>
  name: repository-ciq-com
storageClassName: longhorn
You can rerun the helm upgrade command if you want to update your version of Fuzzball or to change selected settings.

Customizing resource names (optional)

By default, the chart names its resources after the release and chart names. Most installations do not need to change this. If you need different resource names, for example to follow a site naming convention, expand the section below.

Most Kubernetes resources created by the chart derive their name from a computed prefix. The prefix is determined as follows:

  1. If fullnameOverride is set, the prefix is exactly that value.
  2. Otherwise, the effective name is nameOverride if set, or the chart name (fuzzball-operator).
  3. If the release name already contains the effective name, the prefix is the release name alone. Otherwise, the prefix is <release-name>-<effective-name>.

Two optional Helm values control this behavior:

  • nameOverride: Substitutes an alternative chart name in step 2. For example, --set nameOverride=fbop with release name fuzzball-operator produces the prefix fuzzball-operator-fbop (release does not contain fbop), so the Deployment becomes fuzzball-operator-fbop-controller-manager.

  • fullnameOverride: Skips the release name entirely and sets the prefix directly. For example, --set fullnameOverride=fbop always produces fbop-controller-manager regardless of the release name.

The table below summarizes how these values combine with the release name to form resource prefixes:

--set flagsRelease nameResult prefix
(none)fuzzball-operatorfuzzball-operator
(none)fbfb-fuzzball-operator
nameOverride=fbopfuzzball-operatorfuzzball-operator-fbop
nameOverride=fbopfbopfbop
fullnameOverride=fbop(any)fbop

Each affected resource appends a stable suffix to this prefix:

SuffixResource(s)
-controller-managerDeployment, ServiceAccount, PersistentVolumeClaim
-controller-manager-metrics-serviceService
-controller-manager-registryService (only when airgap.enabled=true)
-leader-election-roleRole
-leader-election-rolebindingRoleBinding
-manager-rolebindingClusterRoleBinding
-proxy-rolebindingClusterRoleBinding
-update-crd-saServiceAccount (post-upgrade hook)
-update-crd-roleClusterRole (post-upgrade hook)
-update-resourcesClusterRoleBinding (post-upgrade hook)
-update-crds-jobJob (post-upgrade hook)

The following resources are not affected by nameOverride or fullnameOverride:

  • CRDs (fuzzballorchestrate.deployment.ciq.com, fuzzballfederate.deployment.ciq.com) — Kubernetes enforces <plural>.<group> naming and these cannot be renamed.
  • ClusterRoles fuzzball-metrics-reader and fuzzball-proxy-role — fixed names generated by the kubebuilder/kube-rbac-proxy scaffolding.
  • imagePullSecrets Secret — controlled by imagePullSecrets.name, not the fullname helper.

Server node: configure Fuzzball Deployment

Now that the K8s Fuzzball Operator is installed on the Server node, we are ready to use it to deploy Fuzzball! The first step is to generate a suitable fuzzball.yaml file to configure the new deployment. Here is an example.

At this time, there are variables that appear in the fuzzball.yaml file that can only be set to the given value. Do not assume that any variable in the YAML file can be used to configure the Fuzzball Orchestrate CRD.
The following code block describes several commands to set the values of environment variables and one (extremely long) cat command that will use these values to create the appropriate Custom Resource Definition (CRD) file.
# DEPOT_USER="" # populate with your username for CIQ Depot

# ACCESS_KEY="" # populate with the Depot key obtained from the CIQ sales/support team

# IP1="" # populate with the first IP address in your metallb pool (e.g. 10.0.0.99)

# NFS_SERVER_IP="" # populate with the IP address of your NFS server

# REALM_ID=$(uuidgen --random | tr 'A-Z' 'a-z')

# OWNER_EMAIL="admin@ciq.com" # populate with the email of the owner of the Fuzzball organization

# STORAGE_CLASS="longhorn" # change this to local-path if you installed Local Path Provisioner
# cat > fuzzball.yaml <<EOF
apiVersion: deployment.ciq.com/v1alpha1
kind: FuzzballOrchestrate
metadata:
  labels:
    app.kubernetes.io/name: fuzzball-orchestrate
    app.kubernetes.io/part-of: fuzzball
  name: fuzzball-orchestrate
spec:
  image:
    username: ${DEPOT_USER}
    password: ${ACCESS_KEY}
    exclusive: false
  ingress:
    create:
      domain: "${IP1}.nip.io"
      proxy:
        type: LoadBalancer
        annotations:
          metallb.io/allow-shared-ip: ingress-and-fuzzball
          metallb.io/loadBalancerIPs: ${IP1}
  database:
    create:
      enableDebugPod: true
      storage:
        class: ${STORAGE_CLASS}
  keycloak:
    create:
      ingress:
        hostname: auth.${IP1}.nip.io
      realmName: Fuzzball
      realmId: ${REALM_ID}
      username: keycloak
      ownerEmail: "${OWNER_EMAIL}"
      createDatabase: true
  tls:
    certManager:
      create: {} # Empty object = deploy cert-manager with defaults
    trustManager:
      create: {} # Empty object = deploy trust-manager with defaults
  fuzzball:
    substrate:
      nfs:
        destination: "/fuzzball/shared"
        server: ${NFS_SERVER_IP}
        path: "/srv/fuzzball/shared"
    audit:
      storage:
        class: ${STORAGE_CLASS}
    objectCache:
      storage:
        class: ${STORAGE_CLASS}
    storage:  # example of how to specify resources for fuzzball services
      resources:
        requests:
          cpu: 250m
          memory: 256Mi
        limits:
          cpu: 1000m
          memory: 1Gi
    workflow:
      callbackService:
        type: LoadBalancer
        annotations:
          metallb.io/allow-shared-ip: ingress-and-fuzzball
          metallb.io/loadBalancerIPs: ${IP1}
      autoscaling: # example for auto-scaling workflow service
        enabled: true
        minReplicas: 1
        maxReplicas: 3
        targetCPUUtilization: 80
        targetMemoryUtilization: 80
    substrateBridge:
      log:
        storage:
          class: ${STORAGE_CLASS}
      dns:
        externalService:
          type: NodePort
    orchestrator:
      provisioner:
        enabled: false
      autoscaling:
        enabled: false
        minReplicas: 1
        maxReplicas: 3
        targetCPUUtilization: 80
        targetMemoryUtilization: 80
      resources:
        requests:
          cpu: "500m"
          memory: "512Mi"
    jetstream:
      replicas: 3
      externalService:
        type: NodePort
      storage:
        class: ${STORAGE_CLASS}
        size: 10Gi
EOF
If your cluster already has cert-manager installed, you can configure Fuzzball to use it instead of deploying a new instance. See Deploying with External cert-manager for details.

Because of the environment variables you’ve set, this command will automatically populate the field spec.image.password with a CIQ Depot access key and spec.keycloak.create.realmId with a v4 UUID. It will also set the domain and hostname with the appropriate IP addresses for your setup. There are a few more customizations you may want to make before proceeding.

  • It is recommended that you update spec.ingress.create.domain with a site-specific domain.
  • Optionally update spec.keycloak.create.password with a unique password for the Keycloak admin user.
  • Optionally define spec.keycloak.create.ingress.hostname with a site-specific domain name.
  • If your Compute nodes can’t reach the Server nodes’ IP addresses, expose JetStream and DNS through your load balancer instead. See Compute nodes that can’t reach the Server nodes.

Once you have the fuzzball.yaml file created and customized to your liking, you are ready to use it to deploy Fuzzball Orchestrate.

Compute nodes that can’t reach the Server nodes

Substrate on each Compute node connects to two services in the cluster: JetStream, to register with Orchestrate and receive work, and the Fuzzball DNS service, to resolve the hostnames of jobs. With type: NodePort, both services listen on the IP addresses of the Server nodes that run them, and Substrate is given those addresses. If the Compute nodes can’t route to those addresses, for example because the Kubernetes nodes are virtual machines on a private network, Substrate can’t register and job hostnames don’t resolve.

In that case, set both services to type: LoadBalancer. Substrate is then given each load balancer address with the service port: 4222 for JetStream and 5353 for DNS. Use annotations to have your load balancer assign addresses on a network the Compute nodes can reach. With MetalLB, for example, select an address pool:

spec:
  fuzzball:
    jetstream:
      externalService:
        type: LoadBalancer
        annotations:
          metallb.io/address-pool: compute-reachable
    substrateBridge:
      dns:
        externalService:
          type: LoadBalancer
          annotations:
            metallb.io/address-pool: compute-reachable

Allow TCP ports 4222 and 5353 to those addresses through any firewall between the Compute nodes and the load balancer. Each Compute node registers with the address it uses to reach the JetStream load balancer, which on a host with several network interfaces is the address of the interface that routes to the load balancer. Orchestrate connects back to each Compute node on that address, so the cluster must be able to reach it.

The deployment doesn’t finish, and Compute nodes can’t join, until the load balancer has assigned an address to both services. To see the assigned addresses, check the EXTERNAL-IP column:

# kubectl get service -n fuzzball fuzzball-jetstream-external fuzzball-substrate-bridge-dns

Server node: deploy Fuzzball Orchestrate

With the Fuzzball K8s operator installed and the fuzzball.yaml configuration file in place, you are ready to deploy Fuzzball Orchestrate to the Server node.

You can do so with the following command:

# kubectl apply -f fuzzball.yaml

This command proceeds asynchronously. So it will look like it is completed even though it will still require some time for the K8s Fuzzball deployment to finish. This usually takes several minutes.

You can monitor the deployment as it occurs with the following command:

# kubectl logs -l app.kubernetes.io/name=fuzzball-operator -n fuzzball-system -f --tail=-1
[...snip]
Diagnostics:
  ciq:core/v1:Identity (identity):
    Waiting for keycloak to be ready: SUCCESS

  pulumi:pulumi:Stack (fuzzball-orchestrate-fuzzball-orchestrate):
    Using fuzzballCRD image username and password

Resources:
    + 9 created
    ~ 7 updated
    16 changes. 235 unchanged

Duration: 16s

2025-02-04T22:49:08Z	DEBUG	events	Resources have been deployed successfully	{"type": "Normal", "object": {"kind":"FuzzballOrchestrate","name":"fuzzball-orchestrate","uid":"786ef498-cc8b-4d31-9729-8e0c2a6d9dcb","apiVersion":"deployment.ciq.com/v1alpha1","resourceVersion":"44728"}, "reason": "DeploymentSucceeded"}
2025-02-04T22:49:08Z	INFO	Updated Fuzzball status to ReconciliationComplete - Reconciliation completed successfully	{"controller": "fuzzballorchestrate", "controllerGroup": "deployment.ciq.com", "controllerKind": "FuzzballOrchestrate", "FuzzballOrchestrate": {"name":"fuzzball-orchestrate"}, "namespace": "", "name": "fuzzball-orchestrate", "reconcileID": "ebe8f5ac-8ef7-449a-81bc-080c455aae86"}

After deployment, you can inspect the configuration that was used with the following command:

# kubectl get fuzzballorchestrate fuzzball-orchestrate -o yaml

You can edit the current configuration in-place. These changes will be immediately applied and updated by the Fuzzball operator.

# kubectl edit fuzzballorchestrate fuzzball-orchestrate

Server node: verify the deployment

Once the deployment is complete, you can confirm that Fuzzball Orchestrate is installed correctly by inspecting that expected objects have been created. (Note that you may have more or fewer replicas of some pods.)

Look at the newly started pods:

# kubectl get pods -n fuzzball
NAME                                         READY   STATUS      RESTARTS   AGE
fuzzball-admin-0                             1/1     Running     0          8m49s
fuzzball-admin-ui-548f599b68-9j9vc           1/1     Running     0          8m29s
fuzzball-agent-848db9f89c-lmdmq              1/1     Running     0          7m19s
fuzzball-audit-8dd47456-wf2qq                1/1     Running     0          8m39s
fuzzball-auth-spicedb-77d7dd9957-jz2lr       1/1     Running     0          8m47s
fuzzball-cluster-admin-599c87b794-4txmh      1/1     Running     0          7m54s
fuzzball-jetstream-0                         1/1     Running     0          7m20s
fuzzball-jetstream-1                         1/1     Running     0          7m20s
fuzzball-jetstream-2                         1/1     Running     0          7m20s
fuzzball-load-default-catalog-sv2jg          0/1     Completed   0          3m35s
fuzzball-openapi-65c78cc7cb-wdmmw            1/1     Running     0          8m41s
fuzzball-orchestrator-779cd894d6-h9x9b       1/1     Running     0          5m17s
fuzzball-storage-6597d744b4-zz5n5            1/1     Running     0          5m15s
fuzzball-substrate-bridge-6cc6f74859-gtc2h   1/1     Running     0          6m9s
fuzzball-sync-0                              1/1     Running     0          4m20s
fuzzball-ui-7d664769bb-tkqhl                 1/1     Running     0          8m28s
fuzzball-workflow-7d8cd4cf6-8rt5t            1/1     Running     0          4m48s

Check for any pods that are not in the running state:

# kubectl get pods -A --field-selector status.phase!=Running,status.phase!=Succeeded
No resources found

Check that ingress is configured and ready.

# kubectl get ingress -A
NAMESPACE           NAME                        CLASS    HOSTS                                ADDRESS      PORTS     AGE
fuzzball            fuzzball-admin-ui           kong     ui-admin.10.1.96.99.nip.io           10.1.96.99   80, 443   8m16s
fuzzball            fuzzball-config             kong     api.10.1.96.99.nip.io                10.1.96.99   80, 443   9m35s
fuzzball            fuzzball-openapi            kong     api.10.1.96.99.nip.io                10.1.96.99   80, 443   9m11s
fuzzball            fuzzball-substrate-bridge   kong     substrate-bridge.10.1.96.99.nip.io   10.1.96.99   80, 443   6m14s
fuzzball            fuzzball-ui                 kong     ui.10.1.96.99.nip.io                 10.1.96.99   80, 443   8m10s
fuzzball-identity   identity-keycloakx          <none>   auth.10.1.96.99.nip.io               10.1.96.99   80, 443   10m

Confirm that all persistent volume claims (PVCs) are bound.

# kubectl get pvc -A
NAMESPACE         NAME                                      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
fuzzball-database data-database-postgresql-0                Bound    pvc-52d62829-32b5-41e7-90c0-11d9ddfcfccb   8Gi        RWO            longhorn       <unset>                 12m
fuzzball-system   fuzzball-operator-controller-manager      Bound    pvc-dfc2f2c3-8df0-4ec8-8503-2d927b13402e   20Gi       RWO            longhorn       <unset>                 22m
fuzzball          audit-cold-storage                        Bound    pvc-7bcd7abc-0d11-419b-b453-3a6bddccbb67   1Gi        RWO            longhorn       <unset>                 10m
fuzzball          fuzzball-substrate-logs                   Bound    pvc-e282b15b-6ab2-4b64-8a39-d6c58a382835   5Gi        RWO            longhorn       <unset>                 7m39s
fuzzball          jetstream-data-fuzzball-jetstream-0       Bound    pvc-ad6481d4-d469-4343-a8a3-9b2117e53ab4   10Gi       RWO            longhorn       <unset>                 8m47s
fuzzball          jetstream-data-fuzzball-jetstream-1       Bound    pvc-4cb91882-d556-4ffc-a931-76ed45f8761a   10Gi       RWO            longhorn       <unset>                 8m47s
fuzzball          jetstream-data-fuzzball-jetstream-2       Bound    pvc-a161913d-6629-4b36-b109-a83943041fba   10Gi       RWO            longhorn       <unset>                 8m47s
fuzzball          substrate-shared-config-fuzzball-sync-0   Bound    pvc-2953abd9-5e29-45d5-b731-8dcf935a76d4   5Gi        RWX            nfs-client     <unset>                 5m47s

You now have a running instance of Fuzzball Orchestrate. Next, follow the Substrate Installation guide to connect Compute nodes to it.

The fuzzball cluster docker-compose deploy command brings up a single-host Fuzzball stack — nginx (TLS termination and subdomain routing), PostgreSQL, Keycloak, Fuzzball Orchestrate, and one or more Fuzzball Substrate nodes — suited to local development, evaluation, and testing. The deployment is managed entirely through the fuzzball cluster docker-compose subcommands.

For hardware-specific walkthroughs that build on this tab, see Install Fuzzball on an NVIDIA DGX Spark and Install Fuzzball on an AMD Ryzen AI Max (Strix Halo).

What the stack deploys

The compose stack brings up five services on the host:

ServiceImageRole
nginxnginx:1.27-alpineTLS edge + subdomain routing, NATS/JetStream TCP passthrough
postgrespostgres:16State for Keycloak + Orchestrate
keycloakquay.io/phasetwo/keycloak-crdb:24.0.5OIDC auth (Phase Two CockroachDB variant)
fuzzball-orchestratedepot.ciq.com/fuzzball/fuzzball-images/fuzzball-orchestrate:<tag>API + scheduler + embedded JetStream + UI
substrate-localnode-1depot.ciq.com/fuzzball/fuzzball-images/fuzzball-substrate-orchestrate:<tag>Workflow executor (use the -gpu image variant with --gpu)

The substrate runs workflow jobs as rootless OCI containers directly on the host — no Kubernetes, no cloud, no external infrastructure. On a host with a GPU, the --gpu flag swaps the substrate to the GPU-enabled image variant, which bundles the device plugins that pass the GPU through to workflow containers.

Installation

Make sure the host meets the requirements, including a working Docker installation with the Compose plugin. Then install the Fuzzball CLI and deploy the stack.

Run the commands in this tab as a regular user who can run docker without sudo, usually by being a member of the docker group. Run them all as the same user: each deployment is stored in that user’s configuration directory. The few steps that change system files, such as --update-etc-hosts, --setup-dns, and delete, run sudo themselves and prompt for your password.

Container registry access

The Fuzzball images are pulled from depot.ciq.com. If your Docker daemon isn’t already authenticated to it, log in first with the Depot credentials from the CIQ sales/support team:

$ DEPOT_USER="" # populate with your username for CIQ Depot

$ ACCESS_KEY="" # populate with the Depot key obtained from the CIQ sales/support team
$ echo "${ACCESS_KEY}" | docker login depot.ciq.com --username "${DEPOT_USER}" --password-stdin

Fuzzball CLI

Install the fuzzball command-line tool, following the CLI installation guide — use the .deb package matching your host architecture (amd64 or arm64). Once installed, confirm the binary runs:

$ fuzzball --version

Deploy

The deploy command renders the stack’s configuration files to disk, and --up starts the containers:

$ fuzzball cluster docker-compose deploy --up

To stop and restart the stack later, see Starting and stopping a stack.

Add --dry-run to preview the generated docker-compose.yaml and .env without writing anything to disk or starting containers.

If the container images require authentication, deploy prompts for a registry user and password/token (your CIQ Depot credentials); leave the user blank to skip the registry login. You can also supply them non-interactively with --registry-user and --registry-password, and override the registry itself with --registry. Most other settings — organization name, database and Keycloak credentials, owner email — are auto-generated or defaulted and can be overridden with their corresponding flags (see deploy --help); generated secrets are recoverable later with info --secrets.

Multi-node stacks

By default the stack runs a single substrate node co-located with Orchestrate. For testing or demonstrating multi-node workflows on a single host, pass --substrate-nodes N to run N substrate nodes (default 1, max 255):

$ fuzzball cluster docker-compose deploy --substrate-nodes 2
Running multiple substrate nodes on a single host can over-provision it. This is intended for development and demonstration of multi-node workflows, not for production capacity.

Adding an external substrate node

The stack can also accept a Fuzzball Substrate node running on a separate host, for compute capacity beyond the Orchestrate host. See the Docker Compose tab of Substrate Installation for the full procedure, including the shared image cache and volume storage that external nodes use.

Keeping local changes to the stack

deploy and update --sync-files rewrite docker-compose.yaml from the CLI’s embedded copy, so edits made directly to that file are lost the next time either runs.

Put local changes in docker-compose.override.yaml in the deployment directory instead. Fuzzball never writes or regenerates that file, and applies it last, so its settings win over both the base file and any Fuzzball-managed overlay:

services:
  substrate-localnode:
    volumes:
      - /srv/fuzzball-shared:/mnt

This is the supported way to add a bind mount, pin an address, or change an image without those changes being reverted.

Keycloak memory

Keycloak runs with a fixed 1GiB Java heap inside a 1.75GiB container memory limit. To give it more, raise both values together in docker-compose.override.yaml, keeping roughly 750MiB of the limit above the heap for the JVM’s non-heap memory:

services:
  keycloak:
    environment:
      JAVA_OPTS: >-
        -Xms2048m
        -Xmx2048m
        -XX:+ExitOnOutOfMemoryError
        -XX:MetaspaceSize=96m
        -XX:MaxMetaspaceSize=256m
        -XX:+UseG1GC
        -XX:+UseStringDeduplication
        -XX:MaxGCPauseMillis=200
        -Dfile.encoding=UTF-8
        -Dsun.stdout.encoding=UTF-8
        -Dsun.err.encoding=UTF-8
        -Dstdout.encoding=UTF-8
        -Dstderr.encoding=UTF-8
        -Djava.security.egd=file:/dev/urandom
        -XX:FlightRecorderOptions=stackdepth=512
    deploy:
      resources:
        limits:
          memory: 2.75g

An override replaces JAVA_OPTS as a whole, so restate every flag, not only the heap size.

GPU stacks

The standard deploy brings up a CPU-only stack. On hosts that have GPUs you can opt in to a GPU-enabled substrate image. The same image bundles both the NVIDIA and AMD device plugins; the substrate automatically loads whichever matches the GPU present on the host, so one --gpu image works on either vendor:

$ fuzzball cluster docker-compose deploy --gpu [other deploy flags]

Or to update an existing deployment to the GPU-enabled substrate image:

$ fuzzball cluster docker-compose update --gpu

Prerequisites

  • The host’s GPU vendor driver must be installed and loaded (the vendor’s status tool — e.g. nvidia-smi for NVIDIA — should work on the host).
  • The vendor-specific device nodes must be present (the driver creates these at boot).

Verifying GPU registration

$ fuzzball node list --available-resources
ID              | CLUSTER   | HOSTNAME              | STATUS | CORES | MEMORY (GB) | DEVICES
172.21.0.5/7334 | local-dev | substrate-localnode-2 | Ready  | 20    | 127.9       | nvidia.com/gpu:1

If a GPU device type (for example nvidia.com/gpu:N or amd.com/gpu:N) shows up in the DEVICES column, the substrate-side plumbing is correct and the stack can run GPU workflows.

For how a workflow then requests a GPU, and for NVIDIA versus AMD ROCm specifics, see Using GPUs with Fuzzball.

Naming a deployment

By default the deployment is named default. To run more than one stack on the same host, or to give a deployment a meaningful name, pass --deployment-name:

$ fuzzball cluster docker-compose deploy --deployment-name my-dev-stack

The deployment name is used as the Docker Compose project name and as the directory name under your Fuzzball CLI config home. All of the other docker-compose subcommands accept the same --deployment-name flag to select which stack they act on.

Running more than one stack on the same host at the same time is not recommended — separate stacks compete for the same host ports and resources.

DNS resolution

The stack routes traffic to its services through subdomains of a base domain. The ui., api., keycloak., endpoints., and nats. subdomains must resolve to the host running the stack before you can reach the UI, API, or log in.

There is also a wildcard requirement. Workflow service endpoints declared with type: subdomain are served at a per-endpoint hostname of the form endpoint-<id>.endpoints.<domain>. A new hostname appears for every endpoint, so they cannot be listed ahead of time, and /etc/hosts has no way to express a wildcard. Endpoints declared with the default type: path are served under the single endpoints.<domain> name and are unaffected.

Which approach you need depends on the host:

SituationWhat to do
The site has its own DNSAdd a wildcard A record, deploy with --domain
No DNS, but the host has internet accessNothing — this is the default
Neither DNS nor internet (air-gapped)Deploy with --setup-dns

Default: a self-resolving domain

deploy defaults --domain to <host-ip>.nip.io. The nip.io zone resolves every name beneath it to the IP address embedded in the name, wildcards included, so endpoint-<id>.endpoints.10.0.0.5.nip.io resolves to 10.0.0.5 with no configuration on the host and no sudo. Names resolve both on the host itself and from other machines on the same network.

$ fuzzball cluster docker-compose deploy --up
The domain is fixed when the deployment is created — it is written into the generated TLS certificate and .env, and update cannot change it. If the host’s IP address changes, delete the deployment and deploy again. Assign the host a static or reserved address to avoid this.

Sites with existing DNS

Use your own domain and add a single wildcard A record pointing at the host:

*.fb.example.internal.  IN  A  10.0.0.5

Then deploy against it:

$ fuzzball cluster docker-compose deploy --domain fb.example.internal

This is the most robust option: it covers every client on the network with no per-machine setup, and the domain stays stable if the host’s address changes.

Air-gapped hosts

When the host has neither DNS infrastructure nor internet access, the stack can serve the wildcard zone itself:

$ fuzzball cluster docker-compose deploy --domain fb.local --setup-dns

--wildcard-dns makes Fuzzball Orchestrate answer every name under the domain with 127.0.0.1, published on 127.0.0.1:5354. The zone is authoritative only — it never forwards queries — and the published port is bound to the loopback interface, so it cannot act as a resolver for anything else on the network.

--setup-dns implies --wildcard-dns and additionally configures the host to use that zone. It requires sudo and writes two things, both removed again by delete:

  1. A split-DNS entry, so that only *.<domain> is sent to the stack and every other lookup continues to use the host’s normal upstream resolver:
    • macOS — /etc/resolver/<domain>
    • Linux with systemd-resolved — /etc/systemd/resolved.conf.d/fuzzball-<deployment>.conf
  2. An /etc/hosts entry for the fixed subdomains.

Both are required. The split-DNS entry is what makes the per-endpoint wildcard resolve, but on macOS it is only visible to programs that resolve names through the system library — browsers and curl, but not the statically linked fuzzball CLI. The /etc/hosts entry covers the fixed names for every client, including the CLI. After configuring DNS, deploy confirms that the fixed names resolve and warns if they do not.

On macOS, dig and nslookup query name servers directly and never consult /etc/resolver, so they report failure for wildcard names that resolve correctly in a browser. Use dscacheutil instead:

$ dscacheutil -q host -a name ui.fb.local

On Linux hosts without systemd-resolved there is no per-domain routing to configure, so deploy prints instructions for setting up dnsmasq rather than attempting the change itself. The equivalent configuration is:

server=/fb.local/127.0.0.1#5354

Fixed subdomains only

--update-etc-hosts adds a 127.0.0.1 entry covering the fixed subdomains, without any of the above. It requires sudo:

$ fuzzball cluster docker-compose deploy --update-etc-hosts

Omit the flag and deploy prints the line for you to add yourself:

127.0.0.1 ui.fb.local api.fb.local keycloak.fb.local endpoints.fb.local nats.fb.local

Because hosts files cannot express wildcards, this covers everything except subdomain-style workflow endpoints. It is unnecessary with the default domain, and unnecessary with --setup-dns, which writes the same entry itself.

Log in with the CLI

Before the CLI can reach the cluster you must trust the deployment’s self-signed certificate (or connect with --insecure). fuzzball cluster docker-compose info prints the service URLs, the exact command to trust the certificate, and the ready-to-paste context commands:

$ fuzzball cluster docker-compose info
Deployment:
  Name:      default
  Directory: /home/user/.config/fuzzball/docker-compose/default

Service URLs:
  UI:        https://ui.fb.local
  API:       https://api.fb.local
  Keycloak:  https://keycloak.fb.local
  Endpoints: https://endpoints.fb.local
  JetStream: nats://nats.fb.local:4222

Configuration:
  ... (deployment .env values; passwords hidden unless you pass --secrets)

TLS:
  Certs: /home/user/.config/fuzzball/docker-compose/default/certs
  To trust the deployment's wildcard certificate:
    export SSL_CERT_DIR="/home/user/.config/fuzzball/docker-compose/default/certs"

Connect:
  fuzzball context create default https://api.fb.local https://keycloak.fb.local/realms/<realm-id> fuzzball-cli
  fuzzball context login

UI:
  Open https://ui.fb.local in your browser

Run the export SSL_CERT_DIR=... line and the two fuzzball context commands exactly as printed. context login launches the device-code flow in your browser against Keycloak; sign in as the admin user admin@fb.local plus an auto-generated password (reveal it again with fuzzball cluster docker-compose info --secrets).

Trusting the TLS certificate

The deploy command generates a self-signed root CA (rootCA.pem) and a wildcard leaf certificate under the deployment’s certs/ directory. Because the CA is self-signed, browsers and CLI clients will not trust it by default, and connections to the UI and API will report a certificate warning.

To trust the certificate, either point the fuzzball CLI at the deployment’s certs/ directory or import the root CA into your operating system or browser trust store. fuzzball cluster docker-compose info prints the certs/ path and the exact command to export, for example:

$ export SSL_CERT_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/fuzzball/docker-compose/default/certs"

If you accept the browser warnings instead of importing the root CA, accept them for the UI URL and, when you sign in through Keycloak, for the Keycloak URL the sign-in redirects to. You do not need to accept the API URL: the web UI sends its API requests, including the workflow log stream, through its own server.

The leaf certificate is valid for one year. Renew it in place without redeploying using fuzzball cluster docker-compose update --tls-renew — see Updating Fuzzball.

Starting and stopping a stack

Once a stack has been deployed, you can start and stop it without re-rendering its files:

$ fuzzball cluster docker-compose up

$ fuzzball cluster docker-compose down
down stops and removes the stack’s containers but preserves its data volumes. To additionally remove the volumes — which destroys all data in the deployment — pass down --volumes. This prompts for confirmation; add -y to skip the prompt in scripts.

Lifecycle commands

The full set of fuzzball cluster docker-compose subcommands lets you manage deployments once they exist:

SubcommandDescription
deployRender and (optionally) start a new deployment.
upStart a previously deployed stack.
downStop a stack (optionally removing its volumes).
updateUpdate an existing deployment — see Updating Fuzzball.
statusShow a deployment’s name, version, and running state.
listList all Docker Compose deployments on the host.
infoShow deployment details: service URLs, configuration, TLS trust command, how to connect, and the browser UI endpoint. Secret values (passwords, keys) are masked unless you pass --secrets.
logsShow a deployment’s logs (optionally for a single service); add -f to follow.
deleteRemove a deployment and its generated files. Prompts for confirmation (-y to skip), and offers to remove any /etc/hosts entries it added.
generate-substrate-configGenerate the configuration an external substrate node needs to join the stack — see Substrate Installation.

Run any subcommand with --help to see its full set of options.

Upgrading

Before upgrading, back up the deployment directory. Its certs/ directory holds the deployment’s root CA and its private key, and .env holds the generated passwords. If the CA key is lost, renewing the certificate creates a new CA, and every external Compute node must then be reconfigured. For the default deployment:

$ (umask 077 && tar czf ~/fuzzball-compose-default-$(date +%Y%m%d-%H%M%S).tgz \
    -C "${XDG_CONFIG_HOME:-$HOME/.config}/fuzzball/docker-compose" default)

umask 077 makes the archive readable only by you, and the timestamp gives each backup a new file rather than reusing an older one that may have looser permissions. Keep the archive somewhere private: it contains secrets. It doesn’t include the stack’s data, which lives in Docker volumes such as postgres-data.

To bump the stack to a newer Fuzzball image tag:

$ fuzzball cluster docker-compose update --upgrade

--upgrade moves the deployment to the version your current fuzzball CLI binary was built against; use --version <tag> to pick a specific one instead. The same update command rotates credentials (--reset-owner-password, --reset-keycloak-password, --reset-database-password) and renews the wildcard TLS leaf certificate (--tls-renew). See Updating Fuzzball and fuzzball cluster docker-compose update --help for the full set.

On a deployment created by an earlier CLI, the stack’s own substrate nodes publish an internal CA as /run/fuzzball-substrate/trusted-certs/root-ca.crt, so workflows on them cannot verify the API’s certificate (see In-Workflow API Access). Refresh the generated files while upgrading to fix it. --sync-files overwrites edits made directly to docker-compose.yaml and the other generated files, so move local changes into an override file first (see Keeping local changes to the stack):

$ fuzzball cluster docker-compose update --upgrade --sync-files

If the update’s planned changes do not list IMAGE_TAG – the deployment was already on this version – the update can leave the stack’s own substrate nodes running with the old CA. Restart the stack with fuzzball cluster docker-compose down and then up to finish.

Upgrades keep the original default provisioner

A compose deployment scopes its default storage provisioner to the docker segment, so it is offered only to the compose-managed substrate containers that can actually reach the shared Docker volume behind it. A node added to the cluster by hand never joins that segment and is therefore never offered storage it cannot see.

Upgrading does not apply this to an existing deployment. The scoped provisioner is created under a new name, default-<segment>, and a provisioner’s identity is derived from its name, so it is a new record rather than a rename – renaming would separate the original provisioner from every volume created on it. The upgrade therefore leaves the original unsegmented default in place and adds default-docker alongside it.

Nothing that worked before the upgrade stops working: default keeps its volumes and keeps serving the compose nodes. But because it carries no segment, it is still advertised to every node in the cluster, including hand-added ones, so a workflow that selects it and runs on such a node still fails to start with a missing-directory error.

A fresh deployment is the only way to get the scoping applied automatically. If reinstalling is not practical, retire the old provisioner by hand instead:

  1. Create the volumes you want to keep on default-docker, and copy their data across.

  2. Remove the original:

    $ fuzzball volume provisioner remove default

Until one of those happens, treat default as usable only from the compose-managed nodes. Orchestrate logs a warning at startup whenever it finds an unsegmented default provisioner alongside a segmented one.

Whether the two provisioners share a directory depends on the release that created default-docker. Check with fuzzball volume provisioner info default-docker:

  • It shows a subPath. default-docker keeps its volumes in the organization’s own subdirectory of the shared volume, and default uses the root. A volume on one is not visible through the other, which is why step 1 recreates each volume on default-docker and copies its data.
  • It shows no subPath. Both provisioners serve the same directory, so a volume name that already exists there is refused on the other with an “already exists” error rather than quietly sharing a directory. Deleting a volume through one provisioner removes the data a matching record on the other points at; a fuzzball volume provisioner scan clears the stale record.

Tear down

Stop the stack while preserving its persistent volumes (postgres-data, jetstream-data, substrate-shared-fs, etc.) — useful when you want to come back to your workflows later:

$ fuzzball cluster docker-compose down

To completely remove the deployment, including its generated files and persistent state:

$ fuzzball cluster docker-compose delete

Troubleshooting

When a Docker Compose deployment misbehaves, it’s often useful to inspect the generated stack files or to drive docker compose directly. The CLI writes each deployment into its own directory under your Fuzzball CLI config home and runs docker compose against it on your behalf, so you can do the same thing manually.

pull access denied for depot.ciq.com/...

Docker isn’t authenticated to the registry. Log in as shown in Container registry access, then re-run the deploy.

Locating the deployment directory

Each deployment is stored in a subdirectory named after the deployment, under the docker-compose folder in your Fuzzball CLI config home:

${XDG_CONFIG_HOME:-$HOME/.config}/fuzzball/docker-compose/<deployment-name>/
If XDG_CONFIG_HOME is set in your environment, the directory is rooted there ($XDG_CONFIG_HOME/fuzzball/docker-compose/...); otherwise it falls back to $HOME/.config/fuzzball/docker-compose/.... Docker compose deployments always use this per-user config directory location.

The directory holds everything the stack needs:

  • docker-compose.yaml — the generated Compose file describing every service in the stack.
  • .env — the environment file with values such as IMAGE_TAG (the deployed Fuzzball version) that the Compose file substitutes in. Set PULL_POLICY=missing there to stop the Orchestrate and substrate containers from pulling their images on every start, for example when restarting a host that is offline; the default is always.
  • certs/ — TLS material generated for the deployment.

Running docker compose commands directly

The CLI invokes docker compose with the deployment name as the Compose project name (-p) and with the deployment directory as the working directory. To reproduce that yourself, change into the deployment directory and pass the same -p <deployment-name> flag. For the default deployment:

$ cd "${XDG_CONFIG_HOME:-$HOME/.config}/fuzzball/docker-compose/default/"

List the containers and their state (equivalent to what fuzzball cluster docker-compose status inspects):

$ docker compose -p default ps

Tail the logs of a single service — for example, Orchestrate:

$ docker compose -p default logs -f fuzzball-orchestrate

Inspect the fully-rendered Compose configuration with .env values substituted in, which is helpful for confirming the image tag and other resolved settings:

$ docker compose -p default config
Always pass -p <deployment-name> so your manual docker compose commands act on the same project the CLI manages. For any deployment created with --deployment-name <name>, substitute that name for default in both the directory path and the -p flag above.

Web UI login fails while the CLI still works

If browser logins fail but fuzzball commands keep succeeding, suspect the Keycloak realm rather than the user’s password. The two paths authenticate differently: the CLI uses a device flow against the public fuzzball-cli client and talks to Keycloak directly, while the Web UI needs the confidential fuzzball-ui client and looks it up through the organization service. A realm or client that has gone missing therefore breaks the browser while leaving the CLI working.

Fuzzball creates both clients in each realm when the organization is first bootstrapped. Neither has Keycloak service accounts enabled, so a grant_type=client_credentials request always fails against them and cannot be used to test whether a client is healthy. Use the two checks below instead.

First, confirm the realm exists. This needs no credentials:

$ curl -sk -o /dev/null -w '%{http_code}\n' \
    https://<host>/auth/realms/<realm>/.well-known/openid-configuration

200 means the realm is present; 404 means it is missing, which breaks every browser login in that organization.

If the realm is present, check that its fuzzball-ui client is too. This uses the Keycloak admin credentials from the deployment’s .env:

$ TOKEN=$(curl -sk -X POST https://<host>/auth/realms/master/protocol/openid-connect/token \
    -d grant_type=password -d client_id=admin-cli \
    -d username=<keycloak-admin> -d password=<keycloak-admin-password> \
    | sed -n 's/.*"access_token":"\([^"]*\)".*/\1/p')
$ curl -sk -H "Authorization: Bearer $TOKEN" \
    "https://<host>/auth/admin/realms/<realm>/clients?clientId=fuzzball-ui"

A JSON array containing a client object means it is present. An empty array ([]) means it is missing, which is the condition that breaks Web UI logins while the CLI keeps working.

Orchestrate records the same condition at startup, which is the quickest way to confirm what the two checks above found. When it cannot reach the realm or its fuzzball-ui client, it logs an error containing failed to bootstrap default organization:

$ docker compose -p default logs fuzzball-orchestrate | grep "bootstrap default organization"

If that line is present, recreate the realm and its clients rather than rotating secrets.

Keycloak realm and client settings come from Orchestrate’s configuration, not from the Compose file. A realm identifier written into docker-compose.yaml has no effect on which realm the deployment uses.

Beyond a single host

A multi-host topology — this host plus remote substrate nodes — is supported via generate-substrate-config, which exports the orchestrate’s CA, NATS NKey, and connection config for deployment to a separate machine. See --help on that command and Federation for the cross-cluster story.

Hardening for production (real TLS via cert-manager / Caddy, external managed Postgres + Keycloak, backup automation, log shipping) is covered in Cloud Deployment — most of the recommendations there apply equally to a single-host deployment when you want to move beyond local development.