docs: Add documentation for disabling ReclaimSpace#701
Conversation
|
|
||
| ### Disabling Reclaim Space for a Specific PersistentVolumeClaim | ||
|
|
||
| To disable reclaim space for a specific PersistentVolumeClaim (PVC), edit the `ReclaimSpaceCronJob` custom resource (CR) associated with that PVC. Follow these steps: |
There was a problem hiding this comment.
| To disable reclaim space for a specific PersistentVolumeClaim (PVC), edit the `ReclaimSpaceCronJob` custom resource (CR) associated with that PVC. Follow these steps: | |
| To disable reclaim space for a specific PersistentVolumeClaim (PVC), follow these steps to modify the associated `ReclaimSpaceCronJob` CR: |
|
|
||
| Replace `<PVC_NAME>` with the name of your PVC. | ||
|
|
||
| 2. **Edit the `ReclaimSpaceCronJob` CR**: Use the following settings in the CR to disable reclaim space for this specific PVC: |
There was a problem hiding this comment.
| 2. **Edit the `ReclaimSpaceCronJob` CR**: Use the following settings in the CR to disable reclaim space for this specific PVC: | |
| 2. **Edit the `ReclaimSpaceCronJob` CR**: apply the following to disable the reclaim space: |
| Replace `<PVC_NAME>` with the name of your PVC. | ||
|
|
||
| 2. **Edit the `ReclaimSpaceCronJob` CR**: Use the following settings in the CR to disable reclaim space for this specific PVC: | ||
| - Update the `csiaddons.openshift.io/state` annotation from `"managed"` to `"unmanaged"`. |
There was a problem hiding this comment.
will be good if we add example for kubectl annotate and kubectl patch command
There was a problem hiding this comment.
The reason I did not go with that is because
- The annotation would be present on the CR already.
- User needs to just to
kubectl editand can do both the required changes simultaneously.
Lesser the commands, the better it is, WDYT?
There was a problem hiding this comment.
kubectl edit is not something that can be automated easily. I prefer to give the kubectl annotate and kubectl patch commands as examples, in addition to the description you have now.
Fewer commands is nice, but you should also expect that automated tools deploy apps and configure extra things like disabling reclaim space for its PVC(s).
There was a problem hiding this comment.
Please provide the command to annotate the CR as mentioned above
ff4f504 to
4b82cb3
Compare
|
|
||
| 2. **Edit the `ReclaimSpaceCronJob` CR**: Apply the following to disable the reclaim space: | ||
| - Update the `csiaddons.openshift.io/state` annotation from `"managed"` to `"unmanaged"`. | ||
| - Add `suspend: true` under the `spec` field. |
There was a problem hiding this comment.
please provide `kubectl patch command as well for this one
4b82cb3 to
3cbeadb
Compare
This patch updates the documentation with the steps to disable reclaim space operations. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
3cbeadb to
a2e90c2
Compare
This patch updates the documentation with the
steps to disable reclaim space operations.