← Back to blog
bpdubuntu
Deploying a WordPress Site on Your Custom Kubernetes Cluster
8 January 2026bpd · ubuntu
A Real-World Application Deployment from Scratch
Putting all the pieces together, the ‘Ubuntu System Administration Guide’ provides a complete, from-scratch guide to deploying a WordPress site on the Kubernetes cluster you just built. This involves creating several YAML manifest files to define all the necessary Kubernetes resources.
The WordPress Manifests
You will create manifests for:
- A MySQL Deployment and Service: To run the database for your WordPress site.
- A PersistentVolumeClaim for MySQL: To ensure your database data is stored persistently.
- A WordPress Deployment: To run the WordPress application itself, configured with environment variables to connect to the MySQL service.
- A PersistentVolumeClaim for WordPress: To store your themes, plugins, and uploaded media files.
- A WordPress Service: To expose the WordPress Pods internally within the cluster.
- An Ingress Resource: To tell your Traefik Ingress Controller how to route external traffic to your WordPress service.
Applying these manifests will deploy a fully functional, persistent WordPress installation on your cluster.
This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13