longhorn VS nfs-subdir-external-provisioner

Compare longhorn vs nfs-subdir-external-provisioner and see what are their differences.


Cloud-Native distributed storage built on and for Kubernetes (by longhorn)


Dynamic sub-dir volume provisioner on a remote NFS server. (by kubernetes-sigs)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
longhorn nfs-subdir-external-provisioner
28 24
3,456 930
3.8% 11.7%
8.8 6.5
11 days ago 3 days ago
Shell Shell
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of longhorn. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-31.


Posts with mentions or reviews of nfs-subdir-external-provisioner. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-17.
  • Longhorn to nas nfs
    2 projects | reddit.com/r/homelab | 17 Dec 2021
    I have also used: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner for playing with NFS, directly from K8, instead of hosts.
  • K8s Persistant Storage
    4 projects | reddit.com/r/homelab | 27 Nov 2021
    Then nfs is the way to go. Im using this one https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner at home with k3s. works fine for my usecases. I havent tested snapshots and restores yet.
    4 projects | reddit.com/r/homelab | 27 Nov 2021
  • how to...
    1 project | reddit.com/r/portainer | 22 Nov 2021
    Does the NFS mount exist as a StorageClass in your cluster? If not you'll need to set it up first. Kubernetes doesn't provide an internal NFS provisioner so you'll need to use an external one, something like this. We don't support doing this directly via Portainer as of yet, but you should be able to set the provisioner up using a manifest (as it is an application, after all).
  • to migrate to k8s or not.
    1 project | reddit.com/r/selfhosted | 21 Nov 2021
    NFS will work just fine. You can create PersistentVolumes manually to mount paths on the NFS to Pods or if you want dynamic provisioning check this.
  • K3s v MicroK8s
    2 projects | reddit.com/r/kubernetes | 28 Oct 2021
    so I'm in Cybersecurity right now.. but I'm trying to pivot my career and I'm just in love with K8s / I think its a good future proof tech to learn. my current lab is 3x physical nodes running vmware (VMUG) then I built some ubuntu vms and installed microk8s. Everything seems to work really well. I had/have nfs-subdir-external-provision up and running. I've also tested it so that if I drain a node the pod is recreated on another node just fine and the pv/c works great. I've been trying to figure out why this is a bad solution vs using longhorn/OpenEBS. Sounds like NFS vs iSCSI is the answer.
  • nfs-subdir-external-provisioner vs Longhorn.io
    1 project | reddit.com/r/kubernetes | 25 Oct 2021
    Forgive me if I'm comparing the wrong tools, I'm just starting my CKA journey and I'm at the point of learning about Persistent volumes / claims. I can set them up just fine but digging around I've found that if you're in a multi node cluster you will run into an issue if Pod A is built on Node A and then Node A goes down.. the PV/C will be unreachable from POD A on Node B. So I found what seems like a common solution: kubernetes-sigs/nfs-subdir-external-provisioner . I have this up and running and it works great. I deployed a NGINX pod on Node A.. then drained Node A and it rebuilt on Node B working just fine using the same PV/C. My question is.. is LongHorn.io a better solution? More commonly used? Are these two completely different things?
  • Pi k8s! This is my pi4-8gb powered hosted platform. 8 pi4s for kubeadm k8s cluster, and one for a not so 'nas' share. I use gitlab runners with helmfile to manage my applications. Running over a year and finally passed the CKA with most of my practice on this plus work clusters. AMA welcome!
    12 projects | reddit.com/r/selfhosted | 24 Oct 2021
    I use an nfs server with both standard nfs pv and pvc for shared storage between deployments and https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner for all others.
  • Kubernetes Lab
    3 projects | reddit.com/r/homelab | 21 Oct 2021
    https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner with an external NFS server.
    3 projects | reddit.com/r/homelab | 21 Oct 2021
    Persistent Storage: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner

What are some alternatives?

When comparing longhorn and nfs-subdir-external-provisioner you can also consider the following projects:

rook - Storage Orchestration for Kubernetes

zfs-localpv - CSI Driver for dynamic provisioning of Persistent Local Volumes for Kubernetes using ZFS.

k3s - Lightweight Kubernetes

k3sup - bootstrap Kubernetes with k3s over SSH < 1 min 🚀

loki - Like Prometheus, but for logs.

metallb - A network load-balancer implementation for Kubernetes using standard routing protocols

nfs-ganesha-server-and-external-provisioner - NFS Ganesha Server and Volume Provisioner.

flux2 - Open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.

csi-s3 - A Container Storage Interface for S3

awesome-home-kubernetes - Awesome projects involving running Kubernetes at home

raspberry-pi-dramble - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8