1 - du skal installere din NFS-server:Følg instruktionerne i dette link:
https://vitux.com/install-nfs-server-and-client-on-ubuntu/
2- Opret din delte mappe, hvor du vil bevare dine data<
mount 192.168.56.2:/mnt/sharedfolder /mnt/shared/folder_client
3- Skift i PV.yaml følgende instruktioner:
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-pv
labels:
type: nfs
spec:
capacity:
storage: 100Mi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: slow
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /mnt/sharedfolder
server: 192.168.56.2 #ip of my master-node