Replies: 2 comments
-
Do you have a sample of the pod config? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The following worked for me
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I prepared Kubernetes deployment of the Wordpress image with Apache as a web server (latest version - 8.2) together with Mariadb and FTP server for external access to the files.
I used persistent volume to keep content of "/var/www/html" (i. e. web content itself) persistent across restarts.
Wordpress worked well, but the persistent wolume (originally mounted to "/var/www/html" and shared with the FTP server) was empty in the FTP container. Also if I changed or added anything in the "/var/www/html", it disapeared after POD restart. For example I installed Wordpress plugins via Wordpress GUI, they disapeared after restart (and also they disapeared from the filesystem)0
Do I anything wrong?
I also tried php-fpm-alpine variant of the image, where I mountef the volume also to the NGINX container. The persistent volume behaved as expected (it was visible from FTP, also survived the restart), but I had issues with coupling php-fpm and NGINX so I abandoned this path so far.
Beta Was this translation helpful? Give feedback.
All reactions