1 - Anda perlu menginstal Server NFS Anda:Ikuti petunjuk di tautan ini:
https://vitux.com/install-nfs-server-and-client-on-ubuntu/
2- Buat folder bersama Anda di mana Anda ingin menyimpan data Anda<
mount 192.168.56.2:/mnt/sharedfolder /mnt/shared/folder_client
3- Ubah PV.yaml dengan petunjuk berikut:
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