Skip to main content

Local Path Provisioner

Purpose: Persistent storage for stateful applications

Version: v0.0.24 (Helm chart: local-path-provisioner)

Namespace: local-path-storage

Description

Provides persistent volumes using local disk storage on nodes. Simple and efficient storage solution for development clusters.

Installation

Installed via ArgoCD from Helm chart: rancher/local-path-provisioner

Storage Class

kubectl get storageclass
# NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE
# local-path local-path-provisioner Delete WaitForFirstConsumer

Usage

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: my-pvc
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

Storage Location

Data is stored at: /var/lib/local-path-provisioner/

How It Works

  1. PVC is created with storageClassName: local-path
  2. Provisioner creates PV with local path on node
  3. Pod mounts the PV

Use Cases

  • Prometheus/Grafana persistent data
  • Databases requiring persistent storage
  • Development workloads

Limitations

  • Not suitable for multi-node read/write (single node only)
  • Data not replicated across nodes
  • Not production-grade for critical data