Learn about the installation of WordPress on your OVHcloud Managed Kubernetes Service.
Before you begin
This tutorial assumes that you already have a working OVHcloud Managed Kubernetes cluster and some basic knowledge of how to operate it. If you want to know more about those topics, please look at the OVHcloud Managed Kubernetes Service Quickstart.
You also need to have Helm installed on your workstation and your cluster, please refer to the How to install Helm on OVHcloud Managed Kubernetes Service tutorial.
If you experience permission errors while enabling persistence, see this guide for troubleshooting steps.
Installing the WordPress Helm chart
For this tutorial, we are using the WordPress Helm chart found on Bitnami repository. The chart is fully configurable, but here we are using the default configuration, with only the minimal set of customization to make it work well on OVHcloud Managed Kubernetes Service.
Customizing your install
Maybe you would like your username to be different, or be able to set your password, or choose an external database instead of deploying the MariaDB container...
To customize your installation without having to leave the simplicity of using Helm and the WordPress Helm chart, you can simply set some of the configurable parameters of the WordPress chart. Then you can add it to your helm install
with the --set
option (--set param1=value1,param2=value2
)
This will install the needed elements:
- a MariaDB
Pod
for the database - a WordPress
Pod
for the webserver with the WordPress PHP code - allocate the persistent volumes (
PersistentVolumeClaim
andPersistentVolume
) - and initialize the
Services
.
And at the end, it will give you the connection parameters for your new WordPress:
As the instructions say, you will need to wait a few moments to get the LoadBalancer
URL. You can test if the LoadBalancer
is ready using:
After some minutes, you will get the LoadBalancer
URL:
Then you can follow the instructions to get the Admin URL:
Copy/paste the WordPress URL in your browser to see your new running blog:
To log in on the Admin interface, you need to use the instructions given by the Helm install to get the default username and password for your blog.
In my case:
You have a working WordPress on your OVHcloud Managed Kubernetes Service, congratulations!
Cleaning up
To clean up your cluster, simply use Helm to delete your WordPress blog.
It will delete your WordPress and its associated resources from your cluster:
You also need to remove remaining PersistentVolumeClaim
manually, for the moment:
It will delete the PersistentVolumeClaim
installed by Bitnami WordPress helm chart:
Go further
For more information and tutorials, please see our other Managed Kubernetes or Platform as a Service guides. You can also explore the guides for other OVHcloud products and services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.