Skip to content

Instantly share code, notes, and snippets.

@VerosK
Last active June 30, 2022 09:19
Show Gist options
  • Save VerosK/adb8bb5630e2e980af1600a1d6ebc0c5 to your computer and use it in GitHub Desktop.
Save VerosK/adb8bb5630e2e980af1600a1d6ebc0c5 to your computer and use it in GitHub Desktop.
NFS provisiner setup
NFS_SERVER=192.168.0.0
NFS_EXPORT=/data
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
helm upgrade --install -n kube-system \
nfs-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
--set nfs.server=$NFS_SERVER \
--set nfs.path=$NFS_EXPORT \
--set storageClass.name=nfs \
--set storageClass.defaultClass=true
# see https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/blob/master/charts/nfs-subdir-external-provisioner/values.yaml
# for possible values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment