Jump to content

kubernetes, modules folder, volumes


david htbs

Recommended Posts

Hello

My customer requested to host his prestashop website on Kubernetes.

He provided a zip file containing his website content.

I successfully deployed it in Kubernetes.

But I have some questions (I don't know prestashop)

The customer informed me the "modules" folder must be writable, because some modules write in this folder.

Do you confirm this ?

But this folder is versionned in the git repository and restored with each deployment.

I don't understand how to deal with this folder.

Is there a way to know "modules" subfolders contain changed files after the deployement ?

Thanks.

David.

Link to comment
Share on other sites

Hello

I update the "modules" folder  during the docker image build. (with composer)

So the "modules" is static, overwritten with each build.

But the customer informed that during the application run, some modules upload files (like images) in the "modules" subfolders.

So the "modules" folder contain code and uploaded files.

So, they are lost with each deployment.

The only solution I know :

Mount a persistent volume for each subfolder containing dynamic files

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...