Skip to content

Commit

Permalink
Add Doc for volumesnapshot deployment & statefulset
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 committed Jan 16, 2024
1 parent 7d2295d commit fcffb6b
Show file tree
Hide file tree
Showing 25 changed files with 857 additions and 784 deletions.
407 changes: 275 additions & 132 deletions docs/guides/volumesnapshot/deployment/index.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ spec:
- name: frequent-backup
sessionHistoryLimit: 3
scheduler:
schedule: "*/2 * * * *"
schedule: "*/5 * * * *"
jobTemplate:
backoffLimit: 1
repositories:
- name: gcs-repository
backend: gcs-backend
directory: /volume-snapshot-repo
directory: /pvc-volume-snapshot-repo
deletionPolicy: WipeOut
addon:
name: pvc-addon
Expand Down
17 changes: 17 additions & 0 deletions docs/guides/volumesnapshot/pvc/examples/backupstorage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: storage.kubestash.com/v1alpha1
kind: BackupStorage
metadata:
name: gcs-storage
namespace: demo
spec:
storage:
provider: gcs
gcs:
bucket: kubestash-qa
prefix: demo
secretName: gcs-secret
usagePolicy:
allowedNamespaces:
from: All
default: true
deletionPolicy: WipeOut
2 changes: 1 addition & 1 deletion docs/guides/volumesnapshot/pvc/examples/restored-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
volumes:
- name: restore-data
persistentVolumeClaim:
claimName: restore-data
claimName: restore-source-pvc
readOnly: false
15 changes: 15 additions & 0 deletions docs/guides/volumesnapshot/pvc/examples/retentionpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: storage.kubestash.com/v1alpha1
kind: RetentionPolicy
metadata:
name: demo-retention
namespace: demo
spec:
default: true
failedSnapshots:
last: 2
maxRetentionPeriod: 2mo
successfulSnapshots:
last: 5
usagePolicy:
allowedNamespaces:
from: Same
22 changes: 11 additions & 11 deletions docs/guides/volumesnapshot/pvc/examples/source-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ metadata:
namespace: demo
spec:
containers:
- name: busybox
image: busybox
command: ["/bin/sh", "-c"]
args: ["echo sample_data > /source/data/data.txt && sleep 3000"]
volumeMounts:
- name: source-data
mountPath: /source/data
- name: busybox
image: busybox
command: ["/bin/sh", "-c"]
args: ["echo sample_data > /source/data/data.txt && sleep 3000"]
volumeMounts:
- name: source-data
mountPath: /source/data
volumes:
- name: source-data
persistentVolumeClaim:
claimName: source-data
readOnly: false
- name: source-data
persistentVolumeClaim:
claimName: source-pvc
readOnly: false
4 changes: 2 additions & 2 deletions docs/guides/volumesnapshot/pvc/examples/source-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
namespace: demo
spec:
accessModes:
- ReadWriteOnce
- ReadWriteOnce
storageClassName: csi-standard
resources:
requests:
storage: 1Gi
storage: 1Gi
2 changes: 1 addition & 1 deletion docs/guides/volumesnapshot/pvc/examples/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ parameters:
type: pd-standard
provisioner: pd.csi.storage.gke.io
reclaimPolicy: Delete
volumeBindingMode: Immediate
volumeBindingMode: Immediate
12 changes: 6 additions & 6 deletions docs/guides/volumesnapshot/pvc/examples/volumesnapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
creationTimestamp: "2024-01-12T10:48:31Z"
creationTimestamp: "2024-01-16T11:00:08Z"
finalizers:
- snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection
- snapshot.storage.kubernetes.io/volumesnapshot-bound-protection
generation: 1
name: source-pvc-1705056499
name: source-pvc-1705402801
namespace: demo
resourceVersion: "57330"
uid: 1fa0a06c-80bb-4e7c-b584-579ddceb649d
resourceVersion: "11593"
uid: b5692a5b-8834-48dc-9185-56ed9a2fa124
spec:
source:
persistentVolumeClaimName: source-pvc
volumeSnapshotClassName: csi-snapshot-class
status:
boundVolumeSnapshotContentName: snapcontent-1fa0a06c-80bb-4e7c-b584-579ddceb649d
creationTime: "2024-01-12T10:48:32Z"
boundVolumeSnapshotContentName: snapcontent-b5692a5b-8834-48dc-9185-56ed9a2fa124
creationTime: "2024-01-16T11:00:10Z"
readyToUse: true
restoreSize: 1Gi
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: VolumeSnapshotClass
metadata:
name: csi-snapshot-class
driver: pd.csi.storage.gke.io
deletionPolicy: Delete
deletionPolicy: Delete
Binary file modified docs/guides/volumesnapshot/pvc/images/gcp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fcffb6b

Please sign in to comment.