- Notifications
You must be signed in to change notification settings - Fork 97
WIP: Vol snap shot #2147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Vol snap shot #2147
Conversation
jemaltahir left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be good to follow same file naming convention seems docs/cloud/rahti2/storage/volume-snapshot.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a use case by deploying an Nginx application, creating content, taking a snapshot, and then restoring from that snapshot ?
jemaltahir left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at the comments.
| | ||
| ## Volume snapshots | ||
| | ||
| A snapshot represents the state of the storage volume in a cluster at a particular point in time. Volume snapshots can be used to provision a new volume. Volume snapshots help protect against data loss in OKD. Rahti2 support Container Storage Interface (CSI) volume snapshots by default and the default volume snapshot class name is standard-csi. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| A snapshot represents the state of the storage volume in a cluster at a particular point in time. Volume snapshots can be used to provision a new volume. Volume snapshots help protect against data loss in OKD. Rahti2 support Container Storage Interface (CSI) volume snapshots by default and the default volume snapshot class name is standard-csi. | |
| A snapshot represents the state of the storage volume within a cluster at a specific point in time. Volume snapshots can be used to provision new volume and help protect against data loss in OKD. Rahti2 support Container Storage Interface (CSI) volume snapshots by default and the default volume snapshot class name is standard-csi. |
| - Use volume snapshots as building blocks for developing application or cluster-level storage backup solutions. | ||
| - Rapidly rollback to a previous development version. | ||
| - Use storage more efficiently by not having to make a full copy each time. | ||
| | ||
| You can find additional information on the [Volume snapshot](volume-snapshot.md) page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Use volume snapshots as building blocks for developing application or cluster-level storage backup solutions. | |
| - Rapidly rollback to a previous development version. | |
| - Use storage more efficiently by not having to make a full copy each time. | |
| You can find additional information on the [Volume snapshot](volume-snapshot.md) page. | |
| - Use volume snapshots as building blocks for developing application-level or cluster-level storage backup solutions. | |
| - Rapidly rollback to a previous version during development. | |
| - Use storage more efficiently by avoiding the need to create a full copy each time. | |
| You can find additional information on the [Volume snapshot](volume-snapshot.md) page. |
| @@ -0,0 +1,98 @@ | |||
| ## Volume snapshot provisioning | |||
| | |||
| There are two ways to provision snapshots in Rahti2: by web interface and by using CLI. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| There are two ways to provision snapshots in Rahti2: by web interface and by using CLI. | |
| Rahti2 offers two methods for provisioning snapshots: through the web interface and by using the CLI. |
| # Prerequisites | ||
| | ||
| - An active project in Rahti2 | ||
| - No pods are using persistent volume claim (PVC) that you want to take a snapshot of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - No pods are using persistent volume claim (PVC) that you want to take a snapshot of. | |
| - Ensure no pods are using persistent volume claim (PVC) that you want to take a snapshot of. |
| | ||
| ## Using web interface | ||
| | ||
| After making sure that PVC is not attached to any pod, create a volume snapshot by clicking on 'Create VolumeSnapshot' in 'VolumeSnapshot'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| After making sure that PVC is not attached to any pod, create a volume snapshot by clicking on 'Create VolumeSnapshot' in 'VolumeSnapshot'. | |
| After making sure that PVC is not attached to any pod. Navigate to the 'VolumeSnapshot' section and click on 'Create VolumeSnapshot' to create a snapshot of your PVC. |
| volumeSnapshotClassName: standard-csi | ||
| ``` | ||
| | ||
| To list all the volume snapshots, use the command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before list , it is good to show how to deploy the snapshot.yaml? oc apply -f snapshot.yaml


Proposed changes
Add Volume snap shot preview page.
https://csc-guide-preview.rahtiapp.fi/origin/vol-snap-shot/cloud/rahti2/storage/
https://csc-guide-preview.rahtiapp.fi/origin/vol-snap-shot/cloud/rahti2/storage/volume-snapshot/
Checklist before requesting a review