- Create new dataset in TrueNAS pool
- Enable NFS sharing for dataset
- Enable NFS service
- Make sure that NFS version is V4
- Enable SSH
- Install NFS on k8s host
sudo apt-get install -y nfs-common
- Copy & Config freenas-nfs.yaml
- Make sure you have Helm installed
- Add helm repo
helm repo add democratic-csi https://democratic-csi.github.io/charts/ helm repo update
- helm upgrade --install --create-namespace --values freenas-nfs.yaml --namespace democratic-csi --kubeconfig kube-config.yaml zfs-nfs democratic-csi/democratic-csi
More info https://github.com/democratic-csi/democratic-csi
- If you want to update the configuration, change freenas-nfs.yaml file and run the command again.