Hi @CanisHelix
Longhorn provides persistent storage to the Kubernetes pod
In your case, I would suggest
- Run a NFS server on the Kubernetes and mount the Longhorn Volume to it
- The NFS server further serve the longhorn volume mount point path
- Run the Nginx pod and mount the NFS to it
Now you can still follow the original workflow to update the artifacts in the NFS server
And the artifacts are actually stored in the Longhorn volume which make sure your data is persisted and replicated.
More over you can use Longhorn snapshot feature to snapshot the data and restore it back at anytime.
The point here is when running NFS on the Kubernetes, it is a just pod which can be deleted at any time. If you don’t mount the volume to it then the data inside the pod will not be persisted.
Longhorn provide the persistent volume so you can use it to mount to the pod to persist the data.