Files
Learn-Kubernetes/persistentvolume/persistentvolume.yaml
2025-11-06 06:41:45 +01:00

16 lines
307 B
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
name: example-volume
labels:
type: local
spec:
#we use local node storage here!
#kubectl get storageclass
storageClassName: hostpath
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"