Hi,
I’ve been playing around with Kubernetes and have built a small cluster.
Installed Kasten K10 and it is backing up/snap-shotting, but that will be to storage within the pod it’s installed in.
I have created an NFS share on my NAS, as well as creating a PV and PVC for the share:
nano nfs-share-pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: nas01-kasten-backups
namespace: kasten-io
spec:
capacity:
storage: 500Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /volume2/kasten-backups
server: nas01.my-domain.com
kubectl create -f nfs-share-pv.yaml
nano nfs-share-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nas01-kasten-backups-pvc
namespace: kasten-io
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 500Gi
kubectl create -f nfs-share-pvc.yaml
This shows up in my Kubernetes dashboard and I’ve also configured it in Location Profiles in Kasten.
However, there seems to be no way to provide authentication.
Assuming the NAS user kastenbackup has password “mySecurePassword” where do I put this in the YAML to enable access to the share?
I’m very new to the world of Kubernetes :(
Thanks,
Richie