I need some kind of advise on my problem as I cannot find a suitable solution.
I have a k8s cluster with several nodes and Directus deployed in several pods. My developers want to extend Directus with custom extensions. This is done by uploading these source files in the /extension folder.
This means every pod needs to share the /extension folder to access the files. So my thought was using a shared pvc.
Basically I can setup a NFS pvc wirh rwx to be shared between pods and mounted as /extension.
BUT: How can I deploy the source code and folder structure on this pvc? So I would need to either accesss the FS externally via local mount OR via Github actions to deploy code changes. Jut NFS does not support any auth method so I would open the gate of hell if I access the NFS port outside the privat network.
Is there any other pvc rwx storage solution that could be used also with at least local access options?
I would create the pvc, access it via kubectl, buimd the folder structure as needed from Directus, push code via kubectl cp. Jut this seems a mess in production.