1

I have conceptual question

Where should be the static-content:deploy and di:compile for magento2 production environment on a kubernetes pod

it should be in app image that push/build into your registry ?

so the pods will start the container with already build assets and proxy files

or it should somehow start build on pod-initialize or after pod-initialize ?

please help me for best practice on magento2 kubernetes setup.

1 Answer 1

0

You can and in my opinion should generate all files for production mode during release build, so the app image contains everything necessary while keep being target system independent. This way you

  • generate just once wherever you deploy or scale
  • encounter problems during build stage and not deployment stage
  • keep your kubernetes deployments simpler and predictable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.