Skip to content

Commit

Permalink
Update VolumeSnapshot Documentation (#219)
Browse files Browse the repository at this point in the history
Signed-off-by: hmsayem <[email protected]>
  • Loading branch information
hmsayem authored Apr 15, 2022
1 parent 6559500 commit faef324
Show file tree
Hide file tree
Showing 39 changed files with 330 additions and 373 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Guides show how to perform different operations with Stash.
- [Stand-alone Volume Backup](/docs/guides/volumes/overview.md): Shows how to use Stash to backup and restore stand-alone volumes(i.e. `PersistentVolumeClaim`).
- [Batch Backup](/docs/guides/batch-backup/overview.md): Shows how to backup multiple co-related components using a single configuration known as `BackupBatch`.
- [Auto Backup](/docs/guides/auto-backup/overview.md): Shows how to configure automatic backup of any stateful workload in your cluster.
- [Volume Snapshot](/docs/guides/volumesnapshot/overview.md): Shows how Stash takes snapshot of `PersistentVolumeClaim`s and restore them from snapshot using Kubernetes `VolumeSnapshot` API.
- [Volume Snapshot](/docs/guides/volumesnapshot/overview/index.md): Shows how Stash takes snapshot of `PersistentVolumeClaim`s and restore them from snapshot using Kubernetes `VolumeSnapshot` API.

- **Different Use Cases:**
Shows different uses cases of Stash like instant backup, pause backup, cross-namespace backup and restore etc.
Expand Down
44 changes: 0 additions & 44 deletions docs/examples/guides/volumesnapshot/daemon.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions docs/examples/guides/volumesnapshot/pvc.yaml

This file was deleted.

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/guides/volumesnapshot/vs.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Guides show how to perform different operations with Stash. We have divided guid
- [Stand-alone Volume Backup](/docs/guides/volumes/overview.md): Shows how to use Stash to backup and restore stand-alone volumes(i.e. `PersistentVolumeClaim`).
- [Batch Backup](/docs/guides/batch-backup/overview.md): Shows how to backup multiple co-related components using a single configuration known as `BackupBatch`.
- [Auto Backup](/docs/guides/auto-backup/overview.md): Shows how to configure automatic backup of any stateful workload in your cluster.
- [Volume Snapshot](/docs/guides/volumesnapshot/overview.md): Shows how Stash takes snapshot of `PersistentVolumeClaim`s and restore them from snapshot using Kubernetes `VolumeSnapshot` API.
- [Volume Snapshot](/docs/guides/volumesnapshot/overview/index.md): Shows how Stash takes snapshot of `PersistentVolumeClaim`s and restore them from snapshot using Kubernetes `VolumeSnapshot` API.

- **Different Use Cases:**
Shows different uses cases of Stash like instant backup, pause backup, cross-namespace backup and restore etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: stash-demo
snapshotClassName: default-snapshot-class
snapshotClassName: csi-snapshot-class
retentionPolicy:
name: 'keep-last-5'
name: "keep-last-5"
keepLast: 5
prune: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard
storageClassName: csi-standard
resources:
requests:
storage: 1Gi
Expand All @@ -19,7 +19,7 @@ metadata:
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard
storageClassName: csi-standard
resources:
requests:
storage: 1Gi
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ spec:
- metadata:
name: restore-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
accessModes: ["ReadWriteOnce"]
storageClassName: "csi-standard"
resources:
requests:
storage: 1Gi
dataSource:
kind: VolumeSnapshot
name: source-data-1563171247
name: source-data-fnbwz
apiGroup: snapshot.storage.k8s.io
- metadata:
name: restore-config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
accessModes: ["ReadWriteOnce"]
storageClassName: "csi-standard"
resources:
requests:
storage: 1Gi
dataSource:
kind: VolumeSnapshot
name: source-config-1563171247
name: source-config-fnbwz
apiGroup: snapshot.storage.k8s.io
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: standard
name: csi-standard
parameters:
type: pd-standard
provisioner: pd.csi.storage.gke.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: snapshot.storage.k8s.io/v1beta1
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: csi-gce-pd-snapshot-class
name: csi-snapshot-class
driver: pd.csi.storage.gke.io
deletionPolicy: Delete
Loading

0 comments on commit faef324

Please sign in to comment.