Skip to content
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

doc: add recommendation for nfs in external cluster #13876

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

parth-gr
Copy link
Member

@parth-gr parth-gr commented Mar 5, 2024

with recent discussion we come to conclusion
nfs can be suported easily in the external cluster
so adding the design that we discussed

closes: #13277

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Copy link

github-actions bot commented Apr 8, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Labeled by the stale bot label Apr 8, 2024
Copy link

mergify bot commented Apr 8, 2024

This pull request has merge conflicts that must be resolved before it can be merged. @parth-gr please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork

@github-actions github-actions bot removed the stale Labeled by the stale bot label Apr 10, 2024
@parth-gr parth-gr requested a review from travisn April 22, 2024 11:51
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

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

Just one more nit, and I'll wait to approve until @BlaineEXE can review

Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
@parth-gr parth-gr requested a review from Madhu-1 April 25, 2024 06:17
@parth-gr parth-gr force-pushed the external-nfs branch 2 times, most recently from d0003c7 to 79385d9 Compare April 25, 2024 07:41
@parth-gr
Copy link
Member Author

@BlaineEXE ^^

Copy link
Member

@BlaineEXE BlaineEXE left a comment

Choose a reason for hiding this comment

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

In general, I think that it is good for Rook to provide a suggestion for users on how to consume the external NFS export. This is especially true because we recommend a workflow that is different from RBD/CephFS with CSI.

That said, I think there are changes we could make to help users understand more generally, and specifically what to do to consume from an external NFS.

@@ -204,3 +204,17 @@ the size of the cluster.
ceph orch set backend ""
ceph mgr module disable rook
```

## External Clusters
Copy link
Member

Choose a reason for hiding this comment

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

This topic doesn't explicitly relate to the CephNFS CRD. It would be best to house this in the StorageConfiguration/NFS section. Probably the nfs.md file, at the end of the doc.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the csi driver should be the right place, as it uses intree driver

Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
ceph nfs export create cephfs <nfs-client-name> /test <filesystem-name>
```

Create the [PV and PVC](https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs) using `nfs-client-server-ip`. It will mount NFS volumes with PersistentVolumes and then mount the PVCs in the [user Pod Application](https://kubernetes.io/docs/concepts/storage/volumes/#nfs) to utilize the NFS type storage.
Copy link
Member

Choose a reason for hiding this comment

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

How do users know what the nfs-client-server-ip is? Where do they find that info?
Let's show this in the docs, or explain it.

Given that it's in code format, I assume that it's something from ceph CLI output?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nixpanic do you have any idea how we can get it?

Copy link
Member Author

Choose a reason for hiding this comment

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

 nfs:
    path: /test
    server: <nfs-client-server-ip>
    ```
    the nfs server ip

Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Documentation/CRDs/ceph-nfs-crd.md Outdated Show resolved Hide resolved
Comment on lines 216 to 218
```yaml
ceph nfs export create cephfs <nfs-client-name> /test <filesystem-name>
```
Copy link
Member

Choose a reason for hiding this comment

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

To be honest, I don't think Rook should document this. Users should defer to Ceph docs for instructions on how to create exports.

Instead, Rook docs should explain how to use a Ceph export's configurations (maybe it's already existing, maybe users create it just for Rook, it doesn't matter) in the PV/PVC.

I think this command should more rightly be a ceph nfs export get <service> <export-name> command, and then we can show how to use the example output of that command to configure the PV/PVCs.

Copy link
Member Author

Choose a reason for hiding this comment

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

lets keep both for simplicity

Copy link

mergify bot commented May 1, 2024

This pull request has merge conflicts that must be resolved before it can be merged. @parth-gr please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork

@BlaineEXE BlaineEXE changed the title doc: add design to support nfs in external cluster doc: add recommendation for nfs in external cluster May 1, 2024
@BlaineEXE
Copy link
Member

Please update the commit title to match the recently updated PR title, or something similar. We are no longer adding a design doc.

with recent discussion we come to conclusion
nfs can be suported easily in the external cluster
so adding the design that we discussed

closes: rook#13277

Signed-off-by: parth-gr <partharora1010@gmail.com>
Signed-off-by: parth-gr <paarora@redhat.com>
@parth-gr
Copy link
Member Author

parth-gr commented Jun 4, 2024

@BlaineEXE please review I have updated the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support NFS with external cluster
4 participants