Prerequisites
For an agent-assisted setup that can install missing supported prerequisites, start with InferOps agent skills. The instructions below are for setting up the prerequisites yourself.
InferOps runs inside a Kubernetes cluster. Before you install it, you need a working cluster with kubectl and helm, a container runtime that can run your chosen inference engines, and a node-local path where model caches can be stored.
Quick checklist
- A Kubernetes cluster (k3s, OrbStack, kind, minikube, or a managed cluster).
-
kubectlconfigured to talk to the cluster. -
helm3.15 or newer. - A node-local cache directory such as
/var/lib/inferops/models. - For GPU runtimes: NVIDIA drivers, the NVIDIA Container Toolkit, and the NVIDIA Device Plugin.
- (Optional) A Tailscale tailnet if you want private remote access.
Choose a cluster
k3s on a single GPU node
k3s is the recommended starting point for a homelab.
- Install k3s with the NVIDIA runtime
curl -sfL https://get.k3s.io | sh -s - \
--kubeconfig-mode 644 \
--default-runtime nvidia
- Install Helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- Create the cache directory
Model caches use a hostPath directory. The downloader runs as UID 65532,
so create the directory with that ownership before installing InferOps.
InferOps will not create a root-owned directory that the downloader cannot
write.
sudo install -d -o 65532 -g 65532 -m 0750 /var/lib/inferops/models
- Install the NVIDIA Container Toolkit
GPU runtimes such as vllm and sglang need the NVIDIA
Container Toolkit configured for containerd.
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=containerd
sudo systemctl restart k3s
- Install the NVIDIA Device Plugin
kubectl apply -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.17.0/nvidia-device-plugin.yml
- Verify the GPU is allocatable
Get the node name first:
kubectl get nodes -o name
Example output:
node/gpu-node-1
Then check the GPU resource:
NODE=$(kubectl get nodes -o jsonpath='{.items[0].metadata.name}')
kubectl describe node "$NODE" | grep nvidia.com/gpu
Expected output:
nvidia.com/gpu: 1
For a detailed walkthrough, see the Homelab setup guide.
OrbStack (macOS local cluster)
OrbStack provides a lightweight local Kubernetes cluster for CPU-only smoke tests. macOS does not expose NVIDIA GPUs to the cluster, so use the llama-cpp runtime here.
- Start the cluster
orb start k8s
kubectl config use-context orbstack
- Install Helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- Create the cache directory
Model caches use a hostPath directory. The downloader runs as UID 65532,
so create the directory with that ownership before installing InferOps.
InferOps will not create a root-owned directory that the downloader cannot
write.
orb sudo install -d -o 65532 -g 65532 -m 0750 /var/lib/inferops/models
If that fails, create it from inside the OrbStack node:
orb sh
sudo install -d -o 65532 -g 65532 -m 0750 /var/lib/inferops/models
exit
- Install InferOps
inferops install \
--context orbstack \
--profile homelab \
--cache-path /var/lib/inferops/models \
--cache-capacity 2Gi
Other one-node Kubernetes options
You can also use kind, minikube, or a small managed cluster. The requirements are the same: a working Kubernetes API, kubectl, helm, and a writable node-local path for the cache. GPU passthrough depends on the tool you choose.
Install kubectl and helm
If you prefer a package manager:
# macOS
brew install kubectl helm
# Ubuntu/Debian
sudo apt-get install -y kubectl helm
Verify:
kubectl version --client
helm version
(Optional) Tailscale private access
If you want to reach the gateway from outside your local network without public ingress, install the Tailscale Kubernetes Operator in your cluster. InferOps can then expose the gateway through a Tailscale Ingress.
Next step
Once the cluster and storage are ready, install InferOps.