NFS shared storage configuration¶
NFS shared storage configuration involves setting up a server to export directories and configuring clients to mount them for network file access^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md].
Server Configuration¶
On the server (e.g., host hdss7-200), the process involves installing the necessary utilities, creating the directory to be shared, and configuring the export rules^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md].
To perform the setup, the nfs-utils package must be installed^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md]. A specific directory, such as /data/nfs-volume, is created to serve as the shared storage location^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md]. Finally, the NFS service is started and enabled to ensure it persists across reboots^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md].
Service Commands¶
The following commands are used to manage the NFS service on the server^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md]:
systemctl start nfs
systemctl enable nfs
Client Configuration¶
Clients utilize the configured shared storage by connecting to the exported directory on the server^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md].
Related Concepts¶
Sources¶
^[400-devops__06-Kubernetes__k8s-learning__linux__04-jenkins__README.md]