Replies: 1 comment 1 reply
-
@kconde2 In Kubernetes, most of the time your code needs to be stateless. So you're not expected to serve user-uploaded media from the webserver/pod that you uploaded it to. Instead use some block store like S3, etc. If you're dealing with a legacy application that you can't control, then you'll need to mount a volume at If you don't care if these media are lost at the even of Pod Restart, you can then use an |
Beta Was this translation helpful? Give feedback.
-
I made this deployment.
I created a k8s cluster with one node locally on my computer.
When user upload files, they are stored into
/app/public/media
(not empty) under php-fpm containerMy problem is that those files are not replicated inside nginx container under same path
/app/public/media
(empty).Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions