Skip to content

Conversation

@vartikashah
Copy link
Collaborator

@vartikashah vartikashah commented Jul 8, 2024

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

@jemaltahir jemaltahir self-requested a review July 8, 2024 12:53
Copy link
Member

@jemaltahir jemaltahir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkout the path it is under
image
but supposed to be under like this:
image

Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

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 ?

Copy link
Member

@jemaltahir jemaltahir left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Comment on lines +33 to +37
- 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:
Copy link
Member

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

@vartikashah vartikashah changed the title Vol snap shot WIP: Vol snap shot Jul 12, 2024
@vartikashah vartikashah deleted the vol-snap-shot branch July 12, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants