
WordPress
- Canonical IS DevOps
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 87 | 07 Mar 2024 | |
latest/stable | 13 | 06 Mar 2023 | |
latest/edge | 123 | 10 Feb 2025 | |
latest/edge | 15 | 30 Mar 2023 |
juju deploy wordpress-k8s
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
How to Redeploy
This guide provides the necessary steps for migrating an existing WordPress instance to a new charm instance.
Migrate Database
Follow the instructions in the mysql charm migration guide to migrate the content of the WordPress MySQL database.
Migrate Media Files
Media Files Stored in Kubernetes Storage
If your media files are stored in Kubernetes
storage (wp_plugin_openstack-objectstorage_config
is not configured), use the
following steps to migrate your files:
- Use the
juju scp
command to transfer files from the/var/www/html/wp-content/uploads
directory of the oldwordpress
container to a local directory. - Use the
juju scp
command again to copy these files from the local directory to the/var/www/html/wp-content/uploads
directory in the new WordPress charm instance’swordpress
container.
Media Files Stored in Object Storage
If your media files are stored in object storage and
the wp_plugin_openstack-objectstorage_config
is not configured, you have two
options:
- Provide the new WordPress charm instance with the same credentials and connection information for the object storage. This allows the new instance to automatically access the existing files.
- Use tools like rclone to copy files from the old storage bucket to a new bucket for the new deployment.