Cluster Management
GPUStack supports cluster-based worker management and provides multiple cluster types. You can provision a cluster through a Cloud Provider such as DigitalOcean, or create a self-hosted cluster and add workers using Docker run commands. Alternatively, you can register all nodes in a self-hosted Kubernetes cluster as GPUStack workers.
Create Cluster
- Go to the
Clusterspage. - Click the
Add Clusterbutton. - Select a cluster provider. There are
DockerandKubernetesfor theSelf-Hostprovider andDigitalOceanfor theCloud Provider. - Depending on the provider, different options need to be set in the
Base ConfigurationandAdd Workersteps. - The
Advancedcluster settings in the Base Configuration allow you to pre-configure the worker options using theWorker Configuration YAML.
Create Docker Cluster
- In the
Basic Configurationstep, theNamefield is required andDescriptionis optional. - Click
Save. - In the
Add Workerstep, some options and validations are needed before adding a worker via thedocker runcommand. Select the GPU vendor. Tested vendors includeNvidia,AMD, andAscend. Experimental vendors includeHygon,Moore Threads,Iluvatar,Cambricon, andMetax. ClickNextafter selecting a vendor.Check Environment. A shell command is provided to verify your environment is ready to add a worker. Copy the script and run it in your environment. ClickNextafter the script returns OK.-
Specify argumentsfor the worker to be added. Provide the following arguments and clickNext: -Specify the worker IP, or let the workerAuto-detect the Worker IP. Make sure the worker IP is accessible from the server. - Specify aAdditional Volume Mountfor the worker container. The mount path can be used to reuse existing model files. -
Run commandto create and start the worker container. Copy the bash script and run it in your environment.
The worker also can be added after the cluster is created.
- Go to
Clusterspage. - Find the cluster which you want to add workers.
- Click the ellipsis button in the operations column, then select
Add Worker. - Select the options to add worker. Following the same steps as above, from
Select the GPU vendortoRun command.
Register Kubernetes Cluster
- In the
Basic Configurationstep, theNamefield is required andDescriptionis optional. - Click
Save. Select the GPU vendor. Tested vendors includeNvidia,AMD, andAscend. Experimental vendors includeHygon,Moore Threads,Iluvatar,Cambricon, andMetax. ForKubernetesclusters you can select multiple GPU vendors, or select none for CPU-only clusters — one worker DaemonSet is rendered per selected vendor, and each DaemonSet'snodeSelectoris derived from the vendor's PCI-presence label at manifest time. ClickNextafter selecting the vendor(s).Check environment. A shell command is provided to verify that your environment is ready to add a worker. Copy the script and run it in your environment. ClickNextafter the script returns OK.Run commandto apply the worker manifests. Copy the bash script and run it in an environment wherekubectlis installed andkubeconfigis configured.
The kubernetes can be registered after the cluster is created.
- Go to
Clusterspage. - Find the cluster which you want to register the Kubernetes cluster.
- Click the ellipsis button in the operations column, then select
Register Cluster. - Select the options to register the cluster. Follow the same steps as above, from
Select the GPU vendortoRun command.
Kubernetes Cluster Options
When creating or editing a Kubernetes cluster, the following options are available in the Basic Configuration step in addition to Name and Description:
Cluster Type(required) — choose how the cluster is used:Model Service— for LLM inference and API serving, e.g. exposing model APIs and token-based services.GPU Service— for on-demand GPU compute, e.g. interactive development, training jobs, or custom environments.
The Advanced settings expose the following Kubernetes deployment options:
Namespace— the Kubernetes namespace the cluster's manifests render into. Leave empty to usegpustack-system.Volume Mounts— extra volumes mounted into every worker pod. For each mount, specify aVolume Name,Container Path, andRead Onlyflag, then choose aSource Type:Host Path— a path on the node, with aPath Type(e.g.Directory,Directory (create if not exists),File,Socket,Character Device,Block Device).Persistent Volume Claim (PVC)— an existingPVC Name, optionally read-only.ConfigMap— aConfigMap Name, optionally marked optional.
Image Credentials— image pull secrets used to pull GPUStack images from a private registry. For each entry, specify aRegistry,Username, andPassword.Node Selector— a podnodeSelectorapplied to every worker DaemonSet; only nodes whose labels match are eligible to run the worker.Default Container Registry— the default registry used to resolve GPUStack images for this cluster. Falls back to the server default when unset (placeholderdocker.io).Operator Image— override for the GPUStack Operator container image. Leave empty to use the server default.GPU Service Static Access Address— only shown whenCluster TypeisGPU Service. The static address the operator uses to access GPU instances in this cluster (e.g. a LoadBalancer VIP). Optional.Worker Configuration YAML— see Worker Configuration YAML below.
Creating DigitalOcean Cluster
- In the
Basic Configurationstep, theNamefield is required andDescriptionis optional. Create or select a Cloud Credential for communicating with the DigitalOcean API. Select a Region that supports GPU Droplets. You must also configure theGPUStack Server URL, which will be accessible from the newly created DigitalOcean Droplets. - Click
Next. - Adding one or more
Worker Pools. For each pool,Name,Instance Type,OS Image,Replicas,Batch Size,LabelsandVolumescan be specified. - Click
Saveafter the worker pools are configured.
Additional worker pools can be added after the cluster is created.
- Go to
Clusterspage. - Find the
DigitalOceancluster which you want to add worker pool. - Click the ellipsis button in the operations column, then select
Add Worker Pool - Adding new worker pool with options from Step 3 above.
Operating Worker Pools
You can manage worker pools for DigitalOcean clusters on the Clusters page:
- Go to the
Clusterspage. - Find the DigitalOcean cluster you want to manage and expand it to view its worker pools.
- To edit the replica count for a worker, modify it directly in the worker column.
- To edit a worker pool, click the
Editbutton and update theName,Replica,Batch Size, andLabelsas needed. - To delete a worker pool, click the ellipsis button in the operations column for the worker pool, then select
Delete.
Update Cluster
- Go to the
Clusterspage. - Find the cluster which you want to edit.
- Click the
Editbutton. - Update the
Name,DescriptionandWorker Configuration YAMLas needed. - Click the
Savebutton.
Delete Cluster
- Go to the
Clusterspage. - Find the cluster which you want to delete.
- Click the ellipsis button in the operations column, then select
Delete. - Confirm the deletion.
- You cannot delete a cluster if there are any models or workers still present in it.
Worker Configuration YAML
When creating or updating a cluster, you can predefine the worker configuration using the following example YAML:
The above YAML lists all currently supported options for the Worker Configuration YAML. For the meaning of each option, refer to the full GPUStack config file documentation. The proxy_mode option controls how the server reaches the worker — see Worker Connection Modes.
The default container registry is no longer set here for either Docker or Kubernetes clusters; configure it through the cluster-level Default Container Registry option in the Advanced settings instead. For Kubernetes clusters, the namespace is likewise configured through the Namespace option (see Kubernetes Cluster Options).
Worker Connection Modes
To forward inference requests to the model instances on a worker, the server and the API gateway need a network path back to that worker. The proxy_mode worker option — set via the Worker Configuration YAML or the --proxy-mode flag — selects this path:
direct— The server and gateway connect straight to the worker's advertised address and port. Lowest overhead, but the worker must be directly reachable from the server.worker— Requests pass through the worker's built-in HTTP reverse proxy, which forwards them to the local inference process. The worker must still be reachable from the server, but only its worker port needs to be exposed.tunnel— The worker keeps a single outbound WebSocket connection to the server, and the server reaches the worker only through that tunnel. Use this when the worker cannot accept inbound connections from the server.
The default is direct for the embedded worker inside the server, and worker for standalone workers.
Tunnel Mode (Worker Behind a Firewall or NAT)
In direct and worker modes the server initiates the connection, so the worker must be reachable from the server. That is not always possible — for example when the worker sits behind a firewall or NAT, on a different network, or in a private subnet that only allows outbound traffic.
tunnel mode reverses the direction: the connection is established one way, from the worker to the server.
- The worker opens a persistent outbound WebSocket connection to the server — to the same
--server-urlendpoint it uses to register — authenticated with its token and reconnected automatically if it drops. - The server runs an HTTP/HTTPS proxy on its proxy port (default
30079, set via--proxy-port). - When the gateway needs to reach a model instance on a tunnel-mode worker, it routes the request to the server's proxy port, which relays it to the worker over the existing tunnel.
Since the worker only ever dials out, no inbound ports have to be opened on the worker side. It only needs to reach the server's API port, and the server's proxy port must be reachable by the gateway.
To enable it, set the worker's proxy_mode to tunnel: