I have had success hosting the hub sqlite db on NFS. We are using AWS EFS to host this.
Here’s a portion of the helm chart:
hub:
extraVolumes:
- name: hub-db-dir
persistentVolumeClaim:
claimName: nfs-host-pvc
Here’s a pvc config:
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-host-pv
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
nfs:
server: amazon-efs-hub-storage-server
path: "/host-hub"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nfs-host-pvc
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 1Gi
The only thing I’ll note, is that using Helm - there was a bit of an annoyance that a basic deployment needs to be deployed, and then this change can be pushed. Little more on that was discussed here: JupyterHub hub-db-dir PV Question