Repository navigation
Description
Friction
Six of the ten bound local-path volumes, 60Gi claimed, sit on the control-plane node's 236 GB root disk, which is 83.8% used and growing, while the two other nodes have 1.9 TB disks at 13% and 17%. Nothing in git steers placement, local-path does not enforce claim sizes, and a local-path volume ties its pod to its node. At the observed growth the disk reaches the kubelet's 85% image-GC threshold in about two to three weeks; a slow-tier model change (an 18-20 GB pull) would bring it near DiskPressure, which would evict Prometheus, Loki and Grafana with nowhere to reschedule, on the node that also runs the API server. Planned items (#1391, #1135's Tempo claim, #1081) add more claims with no placement. Nine of the ten bound PVs are also reclaimPolicy Delete; Loki's Retain is a one-off hand patch.
Evidence
Live, read-only, 2026-10-17:
kubectl get pv: prometheus-server 20Gi, storage-loki-0 20Gi, grafana 5Gi, data-pyroscope-0 5Gi, qdrant-storage-qdrant-0 5Gi and open-webui 5Gi have node affinity to ; registry-data 50Gi, storage-prometheus-alertmanager-0, valkey-runs-data and roadmap-service-home are on one ; the third node holds none.- Prometheus
1 - node_filesystem_avail_bytes/node_filesystem_size_bytes{mountpoint="/"}: 0.838 (236.2 GB ext4 on LVM), 0.131 and 0.169 (about 1.97 TB each); the control-plane root grew from 0.8238 (2026-10-03) to 0.8364 (2026-10-17), about 0.13-0.24 GB a day. /api/v1/nodes/<control-plane-node>/proxy/stats/summary: nodefs used 185.8 GB, available 38.3 GB, imagefs 17.9 GB. configz: imageGCHighThresholdPercent 85, imageGCLow 80, evictionHard nodefs.available 5%. No node reports DiskPressure.- ollama-48gib-slow runs on with hostPath
/var/lib/ollamaon that root filesystem; it is placed by Pascal GPU architecture (k8s/llm/profiles/ollama-profiles.yaml:639-646), so it cannot move by scheduling. prometheus_tsdb_storage_blocks_bytesgrew from 0.50 to 1.31 GB in a week towardretention: 30d/retentionSize: 16GB; Loki keeps 720h.- PV
logging/storage-loki-0is Retain bykubectl-patch(2026-10-03, the documented Metrics and logs are kept for two hours #550 rebind); the other nine bound PVs are Delete.
Repo:
- No nodeSelector or affinity in the values for Prometheus, Loki, Grafana, Pyroscope, Qdrant or Open WebUI (
grep -rn 'nodeSelector|affinity' k8sfinds only the GPU-placed Ollama tiers, gpu-feature-discovery anddcgm-exporter-values.yaml:15). k8s/README.md:293(local-path pods "cannot move and wait for their node");:149(--addressing proxyreaches Grafana, Prometheus and Pyroscope only on the control-plane node);:213(the Loki rebind procedure).- Alerts
HostFilesystemSpaceLow(prometheus-values.yaml:246-247) andLogOrMetricVolumeDiskLow(:301) fire at 10% free, after image GC starts; with no Alertmanager receiver (feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392) nobody would see them. - The StorageClasses come from dan-petty/homelab
k8s/manifests/local-path-storage.yaml(make storage), which has onlylocal-path(Delete) andfast-nvme(Retain, placebo; homelab#6).
Remedy
- Node labels from git: a storage-role label on the large-disk nodes, set by the homelab repo's host configuration (dan-petty/homelab), not by hand.
- Tests first, then values: a test that every chart values file and manifest under
k8s/that requests a local-path claim also sets a nodeSelector or node affinity on that label (with a reviewed exemption list insrc/devops_cli/config/constants.pyfor anything that must stay); then add the selector to Prometheus, Loki, Grafana, Pyroscope, Qdrant and Open WebUI, and require it in feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 and feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081's claims. - A Retain StorageClass in the homelab manifest, and the stateful charts point at it, so data does not depend on hand patches; the move in step 5 is the time to switch.
- Proxy addressing: update
k8s/README.md:149and--addressing proxyin the same change, since the services leave the control-plane node. - Move the existing volumes with a documented copy-and-rebind per volume (scale to zero, copy, new claim on the target node, rebind; Loki with
--cascade=orphanper README:213), run by a person. - The slow tier's model store stays on the control-plane node (only Pascal GPU); free its root disk instead in the homelab repo (grow the logical volume if the volume group has room, or a separate disk for
/var/lib/ollama). - Add a warning at 85% used (the image-GC threshold) for nodes holding local-path volumes, in
prometheus-values.yaml, with a test entry; it only reaches someone once feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 lands.
Priority: P2. Severity medium: nothing is evicted today, but normal growth reaches image GC within weeks and the next model change or planned claim pushes toward DiskPressure on the control plane.
Proposed design
Problem statement
Local-path volumes are currently bound to the control-plane node's root disk, which is approaching the kubelet's 85% image-GC threshold. This situation risks eviction of critical services (Prometheus, Loki, Grafana) if disk pressure occurs, especially with planned increases in storage claims and model pulls.
Acceptance criteria
- Criterion 1: Node labels are added to identify nodes with large disks for local-path volume placement
Verification: Runkubectl get nodes --show-labelsand verify that large-disk nodes have a newstorage-rolelabel - Criterion 2: Prometheus, Loki, Grafana, Pyroscope, Qdrant and Open WebUI charts are updated to use nodeSelector or node affinity on the new storage-role label
Verification: Runhelm templatefor each chart and verify that the generated manifests contain nodeSelector or nodeAffinity rules targeting the storage-role label - Criterion 3: Existing local-path volumes are moved from control-plane node to large-disk nodes using documented rebind procedure
Verification: Runkubectl get pvbefore and after the move and verify that the PVs are now bound to the target nodes with no DiskPressure alerts - Criterion 4: A Retain StorageClass is implemented in the homelab manifest for stateful charts
Verification: Runkubectl get scand verify that a new StorageClass exists with Retain reclaimPolicy
Key questions
- What is the current node disk usage and which nodes have large disks?: The control-plane node has 236 GB root disk at 83.8% used, while GPU and worker nodes each have 1.9 TB disks at 13% and 17% used respectively. [sources: k8s/README.md]
- What are the existing local-path volumes and their current node bindings?: Six of the ten bound local-path volumes sit on the control-plane node's root disk: prometheus-server (20Gi), storage-loki-0 (20Gi), grafana (5Gi), data-pyroscope-0 (5Gi), qdrant-storage-qdrant-0 (5Gi) and open-webui (5Gi). [sources: k8s/README.md]
- What are the planned storage claims that will increase disk pressure?: Planned items include feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135's Tempo claim, and feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081, which add more local-path claims with no placement. [sources: k8s/README.md]
- Should the control-plane node's root disk be freed by moving ollama to a separate disk?: Yes, the slow tier's model store should stay on the control-plane node but free its root disk by growing the logical volume or using a separate disk for
/var/lib/ollama. (proposed) [sources: k8s/README.md] - Should a new Retain StorageClass be added to the homelab manifest?: Yes, a Retain StorageClass should be added to the homelab manifest to prevent data loss during volume rebind operations. (proposed) [sources: k8s/README.md]
Fit
Needs splitting into 4 items:
- Add node labels to identify large-disk nodes
- Update charts to use nodeSelector or node affinity for local-path volumes
- Move existing volumes with documented rebind procedure
- Implement Retain StorageClass in homelab manifest
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a problem with incorrect disk usage and potential system instability due to volume placement.The issue poses a risk of system eviction and service disruption due to disk pressure on the control-plane node.Fixing the volume placement improves system stability and prevents potential outages for critical services like Prometheus, Loki, and Grafana.The fix involves changes to node labels, chart values, storage classes, and potentially updating documentation and tests.dan-petty commentedon Oct 18, 2026
Proposal needs splitting into 4 items at 25e2cda (see proposed design in issue body).
fix(monitoring): the alloy-metrics write-ahead log survives a pod res…
feat(k8s): the homelab runs gitea under argo cd as a read-write inter…
fix(k8s): stateful local-path volumes bind on nodes with disk headroo…
fix(k8s): stateful local-path volumes bind on nodes with disk headroo…
feat(k8s): devops k8s volume move copies a local-path claim to a volu…
fix(k8s): State the NVMe rule and cover CNPG claims (#6062)