Skip to content

Persistent Storage

Clusters run k3s, which includes the built-in local-path storage class as the default. PersistentVolumeClaims are provisioned as directories on the disk of the node where the pod is scheduled.

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

Because local-path is the default storage class, you can also omit storageClassName entirely.