What ports need to be open for NFS?

What ports need to be open for NFS?

8 Answers. Port 111 (TCP and UDP) and 2049 (TCP and UDP) for the NFS server. There are also ports for Cluster and client status (Port 1110 TCP for the former, and 1110 UDP for the latter) as well as a port for the NFS lock manager (Port 4045 TCP and UDP).

What is the default port of NFS server?

2049
The NFS Daemon runs only on NFS Servers (not on clients). It already runs on a static port, 2049 for both TCP and UDP. Firewalls should be configured to allow incoming packets to this port on both TCP and UDP.

What is NFS in OpenShift?

NFS implements the OpenShift Container Platform Recyclable plug-in interface. Automatic processes handle reclamation tasks based on policies set on each persistent volume. By default, PVs are set to Retain . Once claim to a PVC is deleted, and the PV is released, the PV object should not be reused.

What is NFS node?

NFS stands for Network File System, a file system developed by Sun Microsystems, Inc. It is a client/server system that allows users to access files across a network and treat them as if they resided in a local file directory.

What is NFS Kubernetes?

Network File System (NFS) is a standard protocol that lets you mount a storage device as a local drive. Kubernetes allows you to mount a Volume as a local drive on a container. The NFS integration is very useful for migrating legacy workloads to Kubernetes, because very often legacy code accesses data via NFS.

What are NFS volumes?

Kubernetes Volumes and NFS Kubernetes Volumes are abstracted storage units that allow nodes within a cluster to write, read and share data between them. Kubernetes offers many storage plugins that provide access to storage services and platforms.

How to request persistent storage from NFS server?

Developers request NFS storage by referencing either a PVC by name or the NFS volume plug-in directly in the volumes section of their Pod definition. The /etc/exports file on the NFS server contains the accessible NFS directories. The target NFS directory has POSIX owner and group IDs.

How to configure the default port for NFSv4?

For NFSv4, configure the default port 2049 ( nfs ). For NFSv3, there are three ports to configure: 2049 ( nfs ), 20048 ( mountd ), and 111 ( portmapper ). The NFS export and directory must be set up so that they are accessible by the target pods.

How to configure NFS based persistent volume in Kubernetes?

How to Configure NFS based Persistent Volume in Kubernetes 1 NFS Server IP = 192.168.1.40 2 NFS Share = /opt/k8s-pods/data 3 K8s Cluster = One master and two worker Nodes More

What is the IP of the NFS server?

NFS Server IP = 192.168.1.40 Note: Make sure NFS server is reachable from worker nodes and try to mount nfs share on each worker once for testing. Create a Index.html file inside the nfs share because we will be mounting this share in nginx pod later in article.