Skip to content

Commit

Permalink
doc: add design to support nfs in external cluster
Browse files Browse the repository at this point in the history
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

Signed-off-by: parth-gr <partharora1010@gmail.com>
  • Loading branch information
parth-gr committed Apr 23, 2024
1 parent 44b8499 commit 6e13444
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Expand Up @@ -253,6 +253,10 @@ Consume the S3 Storage, in two different ways:
If encryption or compression on the wire is needed, specify the `--v2-port-enable` flag.
If the v2 address type is present in the `ceph quorum_status`, then the output of 'ceph mon data' i.e, `ROOK_EXTERNAL_CEPH_MON_DATA` will use the v2 port(`3300`).

### NFS storage

Make use of the [NFS client running on the external ceph standalone cluster](../../ceph-nfs-crd.md).

## Exporting Rook to another cluster

If you have multiple K8s clusters running, and want to use the local `rook-ceph` cluster as the central storage,
Expand Down
44 changes: 44 additions & 0 deletions Documentation/CRDs/ceph-nfs-crd.md
Expand Up @@ -204,3 +204,47 @@ the size of the cluster.
ceph orch set backend ""
ceph mgr module disable rook
```

## External Clusters

Make use of the NFS client running on the external ceph standalone cluster.

Create the export,

```yaml
ceph nfs export create cephfs <nfs-client-name> /test <filesystem-name>
```

Create the PV,

```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: <pv-name>
spec:
capacity:
storage: <storage>
accessModes:
- ReadWriteOnce
nfs:
path: /test
server: <nfs-client-server-ip>
persistentVolumeReclaimPolicy: Retain
```

And PVC,

```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-claim1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: <storage>
volumeName: <pv-name>
```

0 comments on commit 6e13444

Please sign in to comment.