local-path
k3s local-path provisioner. Provides volume with one default StorageClass and any cluster-defined classes.
Cluster example
Section titled “Cluster example”providers.volume = apps.local-path.main;apps.local-path.main = { defaultPath = "/var/lib/local-path"; classes.fast-essential.nodePath = "/var/lib/local-path/fast";};Instance options
Section titled “Instance options”classNamestringDefault StorageClass. Claims without a class use it.
- Default
"local-path"
classesattribute set of (submodule)Extra StorageClasses defined by the cluster.
- Default
{ }- Example
{ fast-essential.nodePath = "/mnt/storage/fast/essential/kubernetes"; }
classes.<name>.nodePathnull or stringHost directory that backs claims of this class. Empty uses the first path in the provisioner config.
- Default
null
classes.<name>.reclaimPolicyone of "Retain", "Delete"What happens to the backing directory when a claim is deleted.
- Default
"Retain"
classes.<name>.storageClassNamestringStorageClass object name. Defaults to the class alias.
- Default
"‹name›"
classes.<name>.volumeBindingModeone of "WaitForFirstConsumer", "Immediate"When a claim of this class binds to a volume.
- Default
"WaitForFirstConsumer"
defaultPathstringHost directory for the default StorageClass.
- Default
"/var/lib/rancher/k3s/storage"
helperImagestringImage the provisioner uses to create and delete volume directories on the node.
- Default
"rancher/mirrored-library-busybox:1.37.0"
imagestringProvisioner image. nixpkgs does not ship this program.
- Default
"rancher/local-path-provisioner:v0.0.37"
nodeslist of stringNode names that share the path list. Other nodes use the same list.
- Default
[ ]
priorityClassnull or stringPriorityClass for the provisioner pod. Null omits it.
- Default
"system-node-critical"
provisionerstringProvisioner name recorded in the StorageClasses.
- Default
"rancher.io/local-path"