Files
Cluster/local-persistent-storage-class.yaml
T
2026-11-14 12:21:15 +01:00

13 lines
362 B
YAML

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-persistent-storage
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Retain
parameters:
nodePath: /mnt/data
pathPattern: "{{ .PVC.Namespace }}/{{ .PVC.Name }}/{{ .PVName }}"