From: Sage Weil Date: Mon, 26 Jul 2021 19:58:08 +0000 (-0400) Subject: doc/mgr/nfs: document ingress in more detail X-Git-Tag: v17.1.0~1281^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d9db910f797557d615b5e5e3e612bed7dd00f22;p=ceph.git doc/mgr/nfs: document ingress in more detail Signed-off-by: Sage Weil --- diff --git a/doc/mgr/nfs.rst b/doc/mgr/nfs.rst index 4d51b163517f..04d5df653f38 100644 --- a/doc/mgr/nfs.rst +++ b/doc/mgr/nfs.rst @@ -74,6 +74,42 @@ service. For more details, refer :ref:`orchestrator-cli-placement-spec` but keep in mind that specifying the placement via a YAML file is not supported. +Ingress +------- + +The core *nfs* service will deploy one or more nfs-ganesha daemons, +each of which will provide a working NFS endpoint. The IP for each +NFS endpoint will depend on which host the nfs-ganesha daemons are +deployed. By default, daemons are placed semi-randomly, but users can +also explicitly control where daemons are placed; see +:ref:`orchestrator-cli-placement-spec`. + +When a cluster is created with ``--ingress``, an *ingress* service is +additionally deployed to provide load balancing and high-availability +for the NFS servers. A virtual IP is used to provide a known, stable +NFS endpoint that all clients can use to mount. Ceph will take care +of the details of NFS redirecting traffic on the virtual IP to the +appropriate backend NFS servers, and redeploying NFS servers when they +fail. + +Show NFS Cluster IP(s) +---------------------- + +To examine an NFS cluster's IP endpoints, including the IPs for the individual NFS +daemons, and the virtual IP (if any) for the ingress service, + +.. code:: bash + + $ ceph nfs cluster info [] + +.. note:: This will not work with the rook backend. Instead, expose the port with + the kubectl patch command and fetch the port details with kubectl get services + command:: + + $ kubectl patch service -n rook-ceph -p '{"spec":{"type": "NodePort"}}' rook-ceph-nfs-- + $ kubectl get services -n rook-ceph rook-ceph-nfs-- + + Delete NFS Ganesha Cluster --------------------------