kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch05/todo-list/persistentVolume.yaml

19 lines
338 B
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
name: pv01
spec:
capacity:
storage: 50Mi
accessModes:
- ReadWriteOnce
local:
path: /volumes/pv01
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kiamol
operator: In
values:
- ch05