Skip to main content
FieldTypeDescriptionValue(s)
namestringName of the volume.

Name can only contain:
lowercase and uppercase ASCII letters, digits, and hyphens.
discoveryVolumeDiscoverySpecThe discovery describes how to find a volume.
mountExistingMountSpecThe mount describes additional mount options.
trimTrimConfigThe trim describes the per-volume filesystem trim (fstrim) configuration.
scrubScrubConfigThe scrub describes the per-volume filesystem scrub configuration.

discovery

VolumeDiscoverySpec describes how the volume is discovered.
FieldTypeDescriptionValue(s)
volumeSelectorVolumeSelectorThe volume selector expression.

volumeSelector

VolumeSelector selects an existing volume.
FieldTypeDescriptionValue(s)
matchExpressionThe Common Expression Language (CEL) expression to match the volume.

mount

ExistingMountSpec describes how the volume is mounted.
FieldTypeDescriptionValue(s)
readOnlyboolMount the volume read-only.
disableAccessTimeboolIf true, disable file access time updates.
secureboolEnable secure mount options (nosuid, nodev).

Defaults to true for better security.

trim

TrimConfig describes per-volume filesystem trim (fstrim) configuration. It overrides the global FilesystemTrimConfig for the volume.
FieldTypeDescriptionValue(s)
enabledboolEnable or disable trimming for this volume.

If not set, trimming is enabled when the global FilesystemTrimConfig is present.
intervalDurationThe interval at which the volume is trimmed, overriding the global trim interval.

scrub

ScrubConfig describes per-volume filesystem scrub configuration. It overrides the global FilesystemScrubConfig for the volume.
FieldTypeDescriptionValue(s)
enabledboolEnable or disable scrubbing for this volume.

If not set, scrubbing is enabled by default when scrub section is present.
intervalDurationThe interval at which the volume is scrubbed, overriding the global scrub interval.