21 lines
423 B
YAML
21 lines
423 B
YAML
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
name: my-local-pv
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 3Gi
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
persistentVolumeReclaimPolicy: Retain
|
||
|
storageClassName: my-local-storage
|
||
|
local:
|
||
|
path: /mnt
|
||
|
nodeAffinity:
|
||
|
required:
|
||
|
nodeSelectorTerms:
|
||
|
- matchExpressions:
|
||
|
- key: kubernetes.io/hostname
|
||
|
operator: In
|
||
|
values:
|
||
|
- docker-desktop
|