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/
10 lines
208 B
YAML
10 lines
208 B
YAML
---
|
|
apiVersion: snapshot.storage.k8s.io/v1
|
|
kind: VolumeSnapshot
|
|
metadata:
|
|
name: new-snapshot-demo-v1
|
|
spec:
|
|
volumeSnapshotClassName: csi-hostpath-snapclass-v1
|
|
source:
|
|
persistentVolumeClaimName: hpvc
|