The local volume static provisioner manages the PersistentVolume lifecycle for pre-allocated disks by detecting and creating PVs for each local disk on the host, and cleaning up the disks when released. It does not support dynamic provisioning.
- Overview
- User Guide
- Version Compatibility
- K8s Feature Status
- E2E Tests
- Community, discussion, contribution, and support
Local persistent volumes allows users to access local storage through the standard PVC interface in a simple and portable way. The PV contains node affinity information that the system uses to schedule pods to the correct nodes.
An external static provisioner is provided here to help simplify local storage management once the local volumes are configured. Note that the local storage provisioner is different from most provisioners and does not support dynamic provisioning. Instead, it requires that administrators preconfigure the local volumes on each node and if volumes are supposed to be
- Filesystem volumeMode (default) PVs - mount them under discovery directories.
- Block volumeMode PVs - create a symbolic link under discovery directory to the block device on the node.
The provisioner will manage the volumes under the discovery directories by creating and cleaning up PersistentVolumes for each volume.
To get started with local static provisioning, you can follow our getting started guide to bring up a Kubernetes cluster with some local disks, deploy local-volume-provisioner to provision local volumes and use PVC in your pod to request a local PV.
See our operations documentation which contains of preparing, setting up and cleaning up local volumes on the nodes.
See our helm documentation for how to deploy and configure local-volume-provisioner in Kubernetes cluster with helm.
If you want to manage provisioner with plain YAML files, you can refer to our example yamls. helm generated yamls are good sources of examples too. Here is a full explanation of provisioner configuration.
See our upgrading documentation for how to upgrade provisioner version or update configuration in Kubernetes cluster.
See FAQs.
See Best Practices.
Recommended provisioner versions with Kubernetes versions
Provisioner version | K8s version | Reason |
---|---|---|
2.3.4 | 1.12+ | fs on block support |
2.2.0 | 1.10 | Beta API default, block |
2.0.0 | 1.8, 1.9 | Mount propagation |
1.0.1 | 1.7 |
Also see known issues and CHANGELOG.
- No new features added
- Added support for automatically formatting a filesystem on the given block device in
localVolumeSource.path
- New PV.NodeAffinity field added.
- Important: Alpha PV NodeAffinity annotation is deprecated. Users must manually update their PVs to use the new NodeAffinity field or run a one-time update job.
- Alpha: Raw block support added.
- New StorageClass
volumeBindingMode
parameter that will delay PVC binding until a pod is scheduled.
- New
local
PersistentVolume source that allows specifying a directory or mount point with node affinity. - Pod using the PVC that is bound to this PV will always get scheduled to that node.
- Local block devices as a volume source, with partitioning and fs formatting
- Dynamic provisioning for shared local persistent storage
- Local PV health monitoring, taints and tolerations
- Inline PV (use dedicated local disk as ephemeral storage)
Run ./hack/e2e.sh -h
to view help.
Check testgrid sig-storage-local-static-provisioner dashboard.
Learn how to engage with the Kubernetes community on the community page.
You can reach the maintainers of this project at:
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.