Storage¶
Three storage tiers, each with a clear job:
| Tier | Backed by | StorageClass | Used for |
|---|---|---|---|
| Replicated block | Rook-Ceph on the Micron 7300 NVMe drives | ceph-block (default) |
App config and state PVCs |
| Local | OpenEBS hostpath on each node's local-hostpath volume |
openebs-hostpath |
Caches and scratch that can be lost (for example the Kopiur mover cache) |
| Bulk | TrueNAS ZFS pools over NFS / SMB | (static NFS volumes) | Media, documents, backups |
Rook-Ceph¶
Rook runs a Ceph cluster on the three nodes, with one OSD
per node on a dedicated Micron 7300 PRO 480 GB NVMe drive. The
rook-ceph-cluster HelmRelease
(kubernetes/apps/rook-ceph/rook-ceph/cluster/)
creates:
- the
ceph-blockRBD StorageClass (default,reclaimPolicy: Delete) - the
csi-ceph-blockpoolVolumeSnapshotClass (default), used by Kopiur for crash-consistent snapshots before backup
The VolumeSnapshot CRDs come from the snapshot-controller chart with
keepCRDs: true, so a Helm uninstall or failed-upgrade remediation can't
delete them, and every VolumeSnapshot with them.
Notable settings: msgr2 is required on the wire, discard is enabled on the
block devices, local disk-failure prediction is on, and all Ceph daemons
tolerate tuppr's outdated taint so upgrades don't evict them prematurely.
Day-2 access to the cluster is through the toolbox:
OpenEBS¶
Each node has a local-hostpath Talos UserVolumeConfig on the OS disk
(minimum 20 GiB, grows to fill free space), mounted at
/var/mnt/local-hostpath. OpenEBS LocalPV hostpath
provisions volumes from it as openebs-hostpath. These volumes are tied to a
node and not replicated.
NAS¶
The NAS (nas.internal, 10.73.1.10) exports NFS shares from its ZFS pools
for media libraries, documents and backups. Talos mounts NFS with tuned
options from an nfsmount.conf in the machine config. The nfsrahead
extension, configured by an nfs.conf, raises read-ahead on NFSv4 mounts to
16 MiB.
The NAS must allow non-root mounts
nfsmount.conf sets noresvport, so nodes connect from unprivileged
source ports. TrueNAS rejects those by default (secure exports, seen as
mount.nfs: Operation not permitted), so the NFS service has Allow
non-root mount enabled, which adds insecure to every export. This is
set in the TrueNAS UI and isn't managed from this repository. Existing
NFS connections survive without it; it only shows up once a node reboots.
Apps that depend on an NFS share can use the
zeroscaler/nfs component to
scale to zero when the NAS is unreachable, instead of hanging on a stale mount.
It also serves an SMB share for the Macs' Time Machine backups (see Backups → Time Machine).
The NAS also runs Garage as an
S3-compatible object store at s3.bykaj.io. CNPG uses it for WAL archives
and base backups, and mariadb-operator for base backups and binlogs (mariadb
bucket). Karakeep and Windshift keep their assets and
attachments in the karakeep and windshift buckets, OpenCloud (disabled)
its file contents in the opencloud bucket, and Seafile its libraries in the
seafile-commits, seafile-fs and seafile-blocks buckets (plus its
metadata server's seafile-metadata).
Pages in this section¶
- Backups: what is backed up, where, and how restores work, for both the cluster and the NAS
- PostgreSQL: the CNPG component for apps that need PostgreSQL
- MariaDB: the mariadb-operator component for apps that need MySQL or MariaDB