Skip to content

NFS Storageclass

instale o pacote nfs-common

em todos os nodes k8s

apt instal nfs-common

instale o repo

helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner

configure o storageclass

helm upgrade --install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
    --set nfs.server=192.168.111.xxx \
    --set nfs.path=/srv/nfs/cluster-k8s-rancher

definindo como default

kubectl patch storageclass nfs-client -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}