Skip to content

feat(k8s): check control-plane volumes avoid the k3s root disk - #7895

Merged
dan-petty merged 3 commits into
mainfrom
feat/3985-pv-placement-check
Nov 30, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3985-pv-placement-check

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #3985 is split from #3782. A local-path volume of the control-plane node must sit on the NVMe base directory /mnt/nvme-storage/k8s. No alert or metric reports the path of a volume, because LocalPathNodeDiskHigh reads mountpoint= only and a local-path volume reports no kubelet volume stats. So a volume that the provisioner binds under /var/lib/rancher/k3s/storage fills the small root disk of the control-plane node unseen. This change adds a read-only check that reads the PersistentVolumes and fails on such a volume. It fits one pull request.

Closes #3985

Change: openspec/changes/archive/2026-11-30-3985-pv-placement-check/

devops k8s volume check reads the Nodes and PersistentVolumes and fails
when a volume of a control-plane node has a hostPath under the k3s
storage directory. It makes read calls only and exits 2 on a finding.
@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 30, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 16:26
@dan-petty
dan-petty merged commit ccf34ac into main Nov 30, 2026
36 checks passed
@dan-petty
dan-petty deleted the feat/3985-pv-placement-check branch November 30, 2026 16:33
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.263.0](v0.262.0...v0.263.0)
(2026-11-30)


### Features

* **k8s:** check control-plane volumes avoid the k3s root disk
([#7895](#7895))
([ccf34ac](ccf34ac)),
closes [#3985](#3985)


### Bug Fixes

* **deps:** update dan-petty/devtools Docker tag to v1.6.0
([#7897](#7897))
([9c95596](9c95596))
* **service:** serve the Service counters through the stop
([#7885](#7885))
([a318e64](a318e64))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): fail a check when a control-plane volume is on the root disk

1 participant