预配置创建快照 Set to the actual namespace namespace: default spec: source: If there is a conflict with other VolumeSnapshotContent, you can change it to another name volumeSnapshotContentName: csistaticsnapshotcontent VolumeSnapshot的配置文件参数: 参数 描述 是否必填 metadata.name 快照名称。需要与VolumeSnapshotContent配置文件中的spec.volumeSnapshotRef.name保持一致。 是 metadata.namespace 命名空间。 取值:HBlock CSI安装时绑定的Kubernetes命名空间名称。 是 spec.source.volumeSnapshotContentName VolumeSnapshotContent的名称。 是 3. 应用VolumeSnapshotContent和VolumeSnapshot的配置文件。 plaintext kubectl apply f VolumeSnapshotContent.yaml kubectl apply f VolumeSnapshot.yaml 4. 查看快照。 plaintext kubectl get volumesnapshot [snapshotName] [ n namespace ] kubectl describe volumesnapshot snapshotName [ n namespace ] 查看快照详情