...
As a prerequisite, NFS client packages must be installed on all nodes (nfs-utils on CentOS), where Kubernetes might run pods with NFS mounted. Except for installing packages, we don't have to go through the usual steps you do when using NFS : (i.e. edit the /etc/exports file or mount directories on client machines, etc.).
Deploy NFS Operator
First deploy the Rook NFS operator using the following commands on Control-plane
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
# Clone the repository and enter the directory that we will use throughout the guide $ git clone --single-branch --branch v1.5.3 https://github.com/rook/rook.git $ cd rook/cluster/examples/kubernetes/nfs # Then launch (operator is created in the "rook-nfs-system" namespace) $ kubectl create -f common.yaml -f operator.yaml # Check if the operator is up and running $ kubectl get pod -n rook-nfs-system NAME READY STATUS RESTARTS AGE rook-nfs-operator-f79889845-8r5kq 1/1 Running 0 11m |
...