WordPress on Kubernetes

The Definitive Guide to WordPress on k8s

Prerequisites

Hosting WordPress on Kubernetes is not an easy topic, and while we try to cover every aspect in great detail, there are quite a few things we expect you to already be familiar with to some extent:

  • A good understanding of WordPress, what themes and plugins are, what wp-config.php is.
  • Some experience working in the command line: SSH, curl/wget and basic text editing.
  • Some experience with Linux servers: using a package manager, editing config files, restarting services, etc. Most of our tutorial is based on Debian-family distributions, Ubuntu in particular, but any other distro will work just fine.
  • A good understanding of Linux containers (Docker, Podman, etc.) – we’ll mostly be using official images from Docker Hub, run under containerd in our clusters, but we might build a few of our own too!
  • A basic understanding of PHP, which comes in handy when setting up HyperDB and other WordPress internals.
  • Some experience working with relational databases (MySQL, MariaDB). Some admin experience may be useful, but we’ll be covering setting up database replication from scratch anyway.
  • A general understanding of YAML, which we’ll use a lot when defining and configuring resources in Kubernetes.
  • A few machines to build a cluster on: cloud VMs, local virtual machines or bare metal. We’ll cover the specifics when we create our cluster.

Quite a list for sure! But don’t give up if you’re missing a few of these. They are generally quite easy to learn both in isolation and on the job. If you get stuck or overwhelmed though, we do recommend taking a step back or asking for help.

Good luck!