Repository navigation
feat(k8s): check control-plane volumes avoid the k3s root disk - #7895
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 30, 2026 16:26
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, becauseLocalPathNodeDiskHighreadsmountpoint=only and a local-path volume reports no kubelet volume stats. So a volume that the provisioner binds under/var/lib/rancher/k3s/storagefills 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/