We are running Magento on Kubernetes, so every time we have some more traffic new pods/containers scale up and down multiple times a day.
We are seeing some weird things happening and it seems like the generated
folder should be shared across containers.
We build the image used to bring the containers up, but it only contains the generated/metadata
folder as we run di:compile
as part of the docker image build.
We run the setup:upgrade
on a separate container that we call post-deploy
.
We are thinking about sharing the generated
folder on EFS, is there any concern with this?
Thanks.