k8s-samples/CKA_Course/storage/persistent_volume.yaml

15 lines
238 B
YAML
Raw Permalink Normal View History

2022-08-23 02:03:21 +00:00
apiVersion: v1
kind: PersistentVolume
metadata:
name: my-pv
spec:
storageClassName: localdisk
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /var/output