The YAML Specification requires three daashes `---` as marker for the start of a content block. That means, each YAML file needs to start with `---` on the first line (or after initial comments). See-also: https://yaml.org/
17 lines
309 B
YAML
17 lines
309 B
YAML
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: hpvc-restore
|
|
spec:
|
|
storageClassName: csi-hostpath-sc
|
|
dataSource:
|
|
name: new-snapshot-demo-v1
|
|
kind: VolumeSnapshot
|
|
apiGroup: snapshot.storage.k8s.io
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|