How to configure /app/Assets in Kubernetes


#1

For the /data/db (mongodb), the k8s configuration is made up of a StatefulSet, volumeMounts and volumeClaimTemplates for the persistent storage.

How do you setup /app/Assets for the squidex Deployment manifest?

(I am referring to these lines in docker-compose-production.yml btw:

volumes:
- /etc/squidex/assets:/app/Assets
)

Can I simply do the following?

volumeMounts:
- mountPath: “/app/Assets”
name: name-of-the-same-persistent-volume-used-by-mongo


#2

Do you use GCloud or Azure? I would just put the files to their storage services. Because afaik it is not possible to mount a single volume to multiple servers.

There is already a GridFS PR which could be completed: https://github.com/Squidex/squidex/pull/296