---
title: Compute
description: What shares one mini PC, how the memory was split, and what gets shed first
---

One machine holds a hypervisor, a smart home VM, a Kubernetes node, and a monitoring container. It is one rather than two for plain reasons: a second costs money, there is nowhere to put it, and it would be one more thing to manage. More capacity in this one means a different machine, and that was [declined on cost](/#the-memory-ceiling) too, so everything here is a way of dividing what this one has.

## Why a hypervisor at all

The first decision was against one. With Home Assistant as the only job, a hypervisor meant more failure modes and more to know, in exchange for snapshots the application already took better itself. That argument named its own exception: several unrelated services sharing the same hardware. When monitoring was going to share the box, the exception applied and the decision reversed.

The predicted cost has not really arrived. So far the only downside is the effort of setting it up. It added more to learn, and the extra management layer has not noticeably raised the load of running things. Giving Home Assistant a leg on the IoT segment took a VLAN-aware bridge, one virtual NIC and about fifteen minutes, with no hardware. The surprises have been smaller ones: on that bridge, an interface attached with no tag becomes a trunk, so the Kubernetes node received every segment's traffic and dropped the IoT multicast at around 45 packets a second until the tag was set.

## Kubernetes on one node

A single-node cluster has no availability to offer, and nobody here is claiming otherwise. It exists to be learned from, so how much of the real mechanism it exposes ranked above how easy it is to run. That is also why it is upstream Kubernetes rather than a distribution that folds the control plane and etcd into one binary: those are the parts worth seeing.

A compose file would run the workloads. The repository already has one: the monitoring stack runs on compose, chosen over systemd units because it comes back from `git clone` and `docker compose up`. The cluster gets the eBPF datapath, a real control plane and continuous reconciliation. That cost sits well below its allocation.

Talos makes the node a machine config rather than a server. There is no SSH, no shell and no package manager, so nothing accumulates by hand and the OS is as declarative as the workloads. Most of the management here goes through AI tooling, and none of this has been a problem so far. Whether the OS gets in the way of something unusual is untested. The sharp edges on record are these:

- There is nothing to log in to, so looking at the OS itself means `talosctl`.
- `inlineManifests` are created and never updated. A changed Cilium setting arrives on the node, is reported as applied, and has no effect until it is also applied with `kubectl`.
- The default apply mode reboots when Talos decides it should, and on one node that is the whole cluster. Every apply after the first says `--mode=no-reboot`, which fails loudly instead.

## Splitting the memory

| | Memory | vCPU | Why that much |
|:--|:--|:--|:--|
| Proxmox host | ~2GB | | Less than this on its own; no ZFS cache to feed |
| HAOS | 4GB | 2 | Needs far less, and keeps the rest on purpose |
| talos-01 | 18GB | 4 | Ballooning off, because it fights Kubernetes' memory pressure signals |
| obs-01 | 3GB | 2 | Two Prometheus instances, Loki, and the page cache under them |
| Buffer | ~4GB | | Claimed in advance by the planned camera stack |

The plan assumed 32GB and a range for the cluster. The OS reports 31Gi, so the missing gigabyte came off the largest row and the range became a fixed 18GB. The six physical cores are fully committed before obs-01 even joins, which is acceptable for a lab as long as contention has a winner: Home Assistant carries higher CPU shares than the cluster.

> **What gets shed first**
>
> The Hubble UI, then the in-cluster Prometheus's retention, then that Prometheus entirely. Each step gives up visibility and nothing else. The order was [fixed in advance](/#the-memory-ceiling) on one principle: when something has to give, the lab gives first and the house is not asked to.

## Backups

Two tiers, because losing a file and losing the machine are different problems. Home Assistant backs itself up daily, keeping 14 generations, and the hypervisor images every guest weekly and keeps two locally. Those local images die with the machine, so an encrypted copy leaves the house and is kept for ninety days.

![Inside the M920q, HAOS, talos-01 and obs-01 feed weekly images, with two kept locally. A highlighted arrow takes them, encrypted and kept for 90 days, out of the house, also highlighted. HAOS sends its own backup there too, daily with 14 kept. A dashed arrow runs from a password manager to the offsite copy: the key, copied by hand. A note says none of this has been restored yet.](/diagrams/backup-tiers.svg)

| Guest | If the machine is gone |
|:--|:--|
| HAOS | Git holds only a daily export of its settings, so it comes back only from a backup: its own or the image |
| talos-01 | Rebuildable from Git in hours, by a path never tested |
| obs-01 | Rebuildable from Git, except its data, and only the five-year climate store cannot be collected again |

Left alone, the offsite copy would have had a circular dependency: its key on the machine it exists to survive. So the key is generated elsewhere and copied to a password manager by hand, and that copy is the only one that survives losing the house.

None of this has been restored. The procedure is written down and the alerts confirm archives are arriving, but the transfer only proves the copy matches what was on disk. Until a restore runs, these backups are a hypothesis.
