Skip to content

Conversation

@shanduur
Copy link
Member

@shanduur shanduur commented Oct 24, 2025

New field in UserVolumeConfig - volumeType that defaults to partition, but can be set to directory.
When set to directory, provisioning and filesystem operations are skipped and a directory is created under /var/mnt/<name>.

The directory type enables lightweight storage volumes backed by a host directory, instead of requiring a full block device partition.

When volumeType = "directory":

  • A directory is created at /var/mnt/<metadata.name>;
  • provisioning, filesystem and encryption are prohibited.

Note: this mode does not provide filesystem-level isolation and inherits the EPHEMERAL partition capacity limits.
It should not be used for workloads requiring predictable storage quotas.

apiVersion: v1alpha1
kind: UserVolumeConfig
name: test
volumeType: directory

Resolves #11848

@github-project-automation github-project-automation bot moved this to To Do in Planning Oct 24, 2025
@shanduur shanduur force-pushed the user-volume-type-dir branch from d3435f7 to e4b4e6b Compare October 24, 2025 08:15
@shanduur shanduur marked this pull request as ready for review October 24, 2025 08:15
@talos-bot talos-bot moved this from To Do to In Review in Planning Oct 24, 2025
@shanduur shanduur force-pushed the user-volume-type-dir branch 4 times, most recently from 36ad7ff to 96b7007 Compare October 24, 2025 09:57
@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Oct 24, 2025
@shanduur shanduur force-pushed the user-volume-type-dir branch from 96b7007 to 35d120f Compare October 24, 2025 10:05
@shanduur shanduur force-pushed the user-volume-type-dir branch 10 times, most recently from edebc28 to 5e06d24 Compare October 24, 2025 12:19
@shanduur shanduur marked this pull request as draft October 24, 2025 13:54
@shanduur
Copy link
Member Author

We pass /var/mnt to kubelet as read-only, need some different handling of mount here - e.g. with bind?

@shanduur shanduur force-pushed the user-volume-type-dir branch from 5e06d24 to eb4658e Compare October 24, 2025 14:27
@shanduur shanduur force-pushed the user-volume-type-dir branch 3 times, most recently from 254d9f2 to acdaf84 Compare October 24, 2025 14:44
@shanduur shanduur force-pushed the user-volume-type-dir branch 2 times, most recently from e44ada9 to f34de42 Compare October 27, 2025 08:17
@shanduur shanduur requested review from Orzelius and smira October 27, 2025 08:38
@shanduur shanduur marked this pull request as ready for review October 27, 2025 08:38
@shanduur shanduur force-pushed the user-volume-type-dir branch from f34de42 to e0b9f4c Compare October 27, 2025 11:47
@shanduur shanduur force-pushed the user-volume-type-dir branch from e0b9f4c to e743a90 Compare October 27, 2025 11:48
@shanduur shanduur force-pushed the user-volume-type-dir branch 7 times, most recently from 01c5810 to d8e5925 Compare October 27, 2025 14:44
@shanduur shanduur force-pushed the user-volume-type-dir branch 2 times, most recently from c365372 to 11d588e Compare October 28, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

support directory-based user volumes

4 participants