<p>I'm trying to get an installation of Wordpress running in Kubernetes, as well as have an option of running the same configuration locally in minikube. I want to use the standard Docker image of Wordpress: <a href="https://hub.docker.com/_/wordpress/" rel="nofollow noreferrer">https://hub.docker.com/_/wordpress/</a>.</p>

<p>I'm having trouble with making sure that the plugins and templates are in sync though. The Docker container exposes a Volume at /var/www/html. Wordpress installation, as well as my plugins will live there.</p>

<p>Assuming I do the development on Minikube, along with the installation of plugins etc. How do handle the move between Persistent Volumes between my local cluster and the target cluster? Should I just reinstall Wordpress every time when the Pod is scaled?</p>

mhaligowski
<p>You can follow Writing Portable Configuration (<a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#writing-portable-configuration" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/#writing-portable-configuration</a>) guide for persistent volume if you are planning to migrate it to different cluster.</p>
