# Quickstart

Source: https://argoctl-docs.pages.dev/docs/quickstart

> Install argoCTL, describe your site, and go from bare metal to an OpenAI-compatible endpoint.

> **Using an AI agent?** Give it the setup instructions at https://argoctl-docs.pages.dev/agent-instructions.md, or https://argoctl-docs.pages.dev/llms.txt, which lists every docs page as Markdown.

This walkthrough takes a site from powered-off servers to a model answering requests. It assumes a management server ("mgmt") running Ubuntu 24.04 that can reach the servers' BMCs and the network the servers will be installed on. See [Requirements](https://argoctl-docs.pages.dev/docs/requirements) for the full list.

The example site, `dc1`, has one CPU server for the Kubernetes control plane (`cp1`) and two 8-GPU servers (`gpu1`, `gpu2`).

### Install argoctl on mgmt

```bash
curl -fsSL https://raw.githubusercontent.com/Argo-Compute/argoctl/main/install.sh | sh
argoctl version
```

```text
argoctl 1.0.0, commit 7c41e9a2d0b3, target x86_64-unknown-linux-musl
```

No access to GitHub from mgmt? Use the [manual install](https://argoctl-docs.pages.dev/docs/installation#manual-install).

### Write the site file

Save your site's description as `/etc/argoctl/site.yaml`. Start from this example and replace the networks, addresses, MACs and BMC URLs with yours ([every field](https://argoctl-docs.pages.dev/docs/site-file/reference)):

```yaml title="/etc/argoctl/site.yaml"
# argoCTL site file: one control-plane node and two 8-GPU servers.
# Check it with: argoctl site validate /etc/argoctl/site.yaml
version: 1
name: dc1

networks:
  # BMCs (Redfish). Usually no gateway or DNS.
  oob:
    cidr: 172.16.0.0/24
  # mgmt <-> nodes: OS installation and SSH.
  provisioning:
    cidr: 172.16.1.0/24
    gateway: 172.16.1.1
    dns: [172.16.1.53]
  # Customer-facing network: Kubernetes and inference traffic. Optional.
  frontend:
    cidr: 172.16.2.0/24
    gateway: 172.16.2.1
    dns: [172.16.1.53]
    # Addresses for LoadBalancer Services: free addresses your network team reserves.
    lb_pool: 172.16.2.200-172.16.2.220

# The management server argoCTL runs on.
mgmt:
  provisioning_ip: 172.16.1.10
  oob_ip: 172.16.0.10

# One BMC login for every node. Never the password itself: the name of an
# environment variable (password_env) or an absolute path (password_file).
bmc:
  username: admin
  password_env: ARGOCTL_BMC_PASSWORD

# Installed on every node over Redfish virtual media.
os_image:
  url: https://cloud-images.ubuntu.com/releases/noble/release-20261017/ubuntu-24.04-server-cloudimg-amd64.img
  checksum: sha256:04e8f2461a16a44e78a370284471f29616cdd9baf1893df25807b71f985b6c94

# Extra keys allowed to log in to every node as `ubuntu` (mgmt's key is always added).
ssh_authorized_keys:
  - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC3pY0j0Cw0bJ3ZyQ2mGk5c1Yh4q0n7Q2s9xM8a1b2c3 ops@example

kubernetes:
  control_plane: cp1

nodes:
  - name: cp1
    bmc:
      address: https://172.16.0.11
      verify_tls: false        # BMC with a self-signed certificate
    nics:
      provisioning: { mac: "3c:ec:ef:10:00:01", ip: 172.16.1.11 }
      frontend: { mac: "3c:ec:ef:20:00:01", ip: 172.16.2.11 }
  - name: gpu1
    bmc:
      address: https://172.16.0.21
      verify_tls: false
    nics:
      provisioning: { mac: "3c:ec:ef:10:00:21", ip: 172.16.1.21 }
      frontend: { mac: "3c:ec:ef:20:00:21", ip: 172.16.2.21 }
  - name: gpu2
    bmc:
      address: https://172.16.0.22
      verify_tls: false
    nics:
      provisioning: { mac: "3c:ec:ef:10:00:22", ip: 172.16.1.22 }
      frontend: { mac: "3c:ec:ef:20:00:22", ip: 172.16.2.22 }
```

Put the BMC password where the site file says it is, here an environment variable, then validate:

```bash
read -rs ARGOCTL_BMC_PASSWORD && export ARGOCTL_BMC_PASSWORD
argoctl site validate /etc/argoctl/site.yaml
```

```text
✓ /etc/argoctl/site.yaml is valid: site dc1, 3 nodes (cp1, gpu1, gpu2)
  networks   oob 172.16.0.0/24, provisioning 172.16.1.0/24, frontend 172.16.2.0/24
  mgmt       172.16.1.10 (provisioning), 172.16.0.10 (oob)
  BMC login  admin, password from $ARGOCTL_BMC_PASSWORD (set)
  OS image   ubuntu-24.04-server-cloudimg-amd64.img (sha256:04e8f2461a16...)
  Kubernetes control plane cp1, pods 10.244.0.0/16, Services 10.96.0.0/12
```

### Check the BMCs

Preflight boots every node from a small test image over Redfish virtual media, waits for it to report back over the provisioning network, then restores each BMC as it was. **It power-cycles the nodes.**

```bash
sudo --preserve-env=ARGOCTL_BMC_PASSWORD argoctl preflight /etc/argoctl/site.yaml
```

### See what the hardware can serve

```bash
sudo --preserve-env=ARGOCTL_BMC_PASSWORD argoctl analyse /etc/argoctl/site.yaml
```

The report lists each node's CPUs, memory, GPUs, NVLink and RDMA, and the models that fit, with the flags to deploy them. See [`argoctl analyse`](https://argoctl-docs.pages.dev/docs/reference/cli/analyse).

### Install Ubuntu on every node

```bash
sudo argoctl ironic install /etc/argoctl/site.yaml
sudo --preserve-env=ARGOCTL_BMC_PASSWORD argoctl provision /etc/argoctl/site.yaml
```

Ironic runs in Docker on mgmt. Provision enrols each node, installs Ubuntu over virtual media with its static IPs, and waits until every node answers SSH with the right hostname and addresses.

### Create the cluster

```bash
sudo argoctl create cluster /etc/argoctl/site.yaml
```

This applies the host profile, runs kubeadm, installs Cilium and the NVIDIA GPU Operator, then runs the cluster checks. The admin kubeconfig is written to `/var/lib/argoctl/cluster/admin.conf`.

### Deploy a model

```bash
export HF_TOKEN=...   # only needed for gated models
sudo --preserve-env=HF_TOKEN argoctl deploy inference /etc/argoctl/site.yaml \
  --model Qwen/Qwen3-8B --replicas 2 --hf-token-env HF_TOKEN
```

```text
✓ inference qwen3-8b is ready: 2/2 replicas (3m12s)
  model     Qwen/Qwen3-8B (bfloat16), 1 GPU per replica
  endpoint  http://172.16.2.21:30080/v1 (NodePort, any node's frontend address)
```

### Send a request

```bash
curl -s http://172.16.2.21:30080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model": "Qwen/Qwen3-8B", "messages": [{"role": "user", "content": "Say hello in five words."}]}'
```

Any OpenAI-compatible client works: point its base URL at the endpoint.

## What next

- [Deploy inference on an argoCTL-managed cluster](https://argoctl-docs.pages.dev/docs/guides/deploy-inference): sizing, larger models, scaling and removal.
- [How models are placed on GPUs](https://argoctl-docs.pages.dev/docs/concepts/model-placement): replicate, tensor parallel and pipeline parallel.
- [CLI reference](https://argoctl-docs.pages.dev/docs/reference/cli): every command and flag.
