Article · 2 min read · Apps and Kubernetes

kubespin: Architecture of a WordPress site

Each WordPress site is isolated: its own network, PHP, cache and volumes, and its own database unless you choose a shared one.

Each WordPress site is isolated: its own network, PHP, cache and volumes, and its own database unless you choose a shared one.

The containers

With the default recipe (PHP-FPM with nginx):

Container What it does
php PHP-FPM running WordPress, with OPcache
web nginx, with a page cache
cron Runs WP-Cron every minute, from the php image
Valkey or Redis The object cache, capped at 32 MB on small servers
MariaDB The database, unless you chose a shared, SQLite or external one

With FrankenPHP (beta), php and web are one container: a web server with PHP built in, running as an unprivileged user. It has no page cache yet.

The files

  • WordPress core is read-only. Only wp-content is writable.
  • wp-content and the database are in named volumes, and are what backups hold.

Images

The php, web and cron images are built for the site from base images copied into your registry. They take their package updates as they’re built, and are scanned and patched like any other image. The site’s Valkey, Redis and MariaDB come from your registry’s patched copies where there are any.

Sized for the server

On a server with 2 GB of memory or less, the site is made smaller when it’s created:

  • PHP-FPM workers start on demand and stop after 10 seconds idle, capped by the memory (5 on a 1 GB server);
  • MariaDB’s buffer pool is 32 MB, with 20 connections;
  • the object cache is capped at 32 MB.

Measured on a 1 CPU, 1 GB test host on 30 November 2026, a site with these settings used about 143 MB at rest. See kubespin: Performance optimisation.