Skip to content

Install and Deploy RezusCloud

Type: How-to · Audience: Operator deploying the management plane

This guide walks through installing RezusCloud and bootstrapping your first tenant cluster. For the architecture behind these steps, see Architecture.

What RezusCloud is

RezusCloud is a tenant orchestrator that lives one layer above talosctl and kubectl. You declare Kubernetes clusters (called tenants); RezusCloud realises them by driving OpenTofu (exec'ing tofu) against real Terraform providers, delivers Talos config via user_data (cloud) or the Talos API (bare metal), and surfaces cluster state read-only. It never duplicates kubectl features — once a tenant is up, you get a kubeconfig and work with the lower layers directly.

Prerequisites

Requirement Version Check
Go 1.26+ go version
Docker 20+ docker version

Install

Download the latest release from GitHub:

# Linux (amd64)
curl -sL https://github.com/rezuscloud/rezuscloud/releases/latest/download/rezuscloud_linux_amd64.tar.gz | tar xz
sudo mv rezusctl /usr/local/bin/
sudo mv rezuscloud /usr/local/bin/

# Or use Docker
docker pull ghcr.io/rezuscloud/rezuscloud:latest

Verify:

rezusctl version

Quick Start

1. Bootstrap a Local Management Cluster

Create a management cluster locally without cloud credentials:

rezusctl boot --platform docker

This creates a single-node Talos cluster in Docker containers, installs Cilium CNI, and deploys the RezusCloud management plane. Takes about 40 seconds.

2. Configure the CLI

# Point CLI to management plane
rezusctl config url http://localhost:3000

# Create admin user (first time)
rezusctl user create admin --role admin --password secret

3. Create a Tenant

rezusctl create cluster personal

This declares a tenant. RezusCloud's reconciliation loop (a debounced per-tenant apply queue) drives tofu apply to provision the infrastructure declared by the tenant's provider modules and node groups.

4. Get Tenant Credentials

rezusctl kubeconfig personal > personal-kubeconfig.yaml

export KUBECONFIG=personal-kubeconfig.yaml
kubectl get nodes

From here, day-to-day work happens with kubectl against the tenant cluster — RezusCloud stays responsible for the cluster-as-a-unit (existence, configuration, upgrades, teardown), not the in-cluster objects.

How tenants get realised

sequenceDiagram
    actor Op as Operator
    participant API as API / WebUI
    participant DB as Store (SQLite)
    participant NATS as NATS bus
    participant Q as Apply Queue
    participant A as Applier
    participant U as Upgrade Engine
    participant TF as tofu (tfexec)
    participant P as Providers (oci · os · metal)
    participant N as Talos node
    Op->>API: spec change (create tenant · scale node group · …)
    API->>DB: persist spec (resourceVersion++)
    par mutation fan-out (MultiBus)
        DB->>NATS: publish → watch/SSE
    and
        DB->>Q: enqueue tenant (status writes filtered)
    end
    Note over Q: debounce · serial per tenant · parallel across
    Q->>A: apply(tenant)
    A->>U: pre-apply hook — version drift?
    opt drift detected
        U->>N: rolling upgrade — one at a time (health · rollback)
    end
    A->>TF: render .tf.json + tfvars → tofu init · apply
    TF->>DB: state via /tfstate backend (encrypted blob)
    TF->>P: provider API calls
    alt cloud VM (oci · openstack)
        P->>N: create instance — config baked into user_data
    else bare metal (metal)
        P->>N: config push — maintenance-mode Talos API
    end
    Note over N: boots/joins · etcd bootstraps on first control-plane
    TF-->>Q: apply complete
    Q->>DB: StatePull → projection → enrich machines (spec only) · phase → status
    NATS-->>Op: SSE — reconciliation surfaced read-only
  • Config delivery is via user_data at VM creation (cloud) or talos_machine_configuration_apply to a maintenance-mode node (bare metal) — no SideroLink, no outbound management-plane dependency during boot.
  • TF state is the single source of truth for declared infrastructure ; observed status (node health, stage) is a separate best-effort plane that is never written back to TF state.

Next Steps