-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Adam Brown edited this page May 17, 2023
·
23 revisions
The Hale Platform is a WordPress Multisite instance running on kubernetes.
Key components are made up of:
- A pod with two containers - an NGINX sidecar container and a WordPress/PHP-FPM container.
- A service that routes to the pods on port 8080.
- A connection to a single RDS instance that uses a MariaDB database. All sites are on this DB instance.
- A single s3 bucket to hold all documents and images uploaded to the sites.
Server-side caching has been added to the NGINX sidecar configuration.
Pod architecture
We use two containers per pod. One is an NGINX sidecar container and second is the WordPress container running PHP-FPM. The NGINX sidecar container is required as it needs to mount in the same directory as WordPress and direct site specific traffic to PHP-FPM running in front of WordPress. We need PHP-FPM as NGINX cannot process PHP natively.
The two images used to create both containers are: