I’m very new to Kubernetes. I’m evaluating it to see how it compares to Docker Compose for managing multiple instances of a Wordpress-like software stack on the same server (i.e. multi-tenancy).
The software I’m deploying uses PHP and MySQL like Wordpress, so I figured a good place to start would be to base my deployment off a multi-tenancy Wordpress deployment. I searched long and hard for such an example with Kubernetes, but couldn’t find one. I did find this article about multi-tenancy Wordpress in Docker Compose: Multiple Wordpress sites on one server with docker | by J.M. Pinney | Medium
(the way it’s done here is to reverse proxy all of the Wordpress containers through Nginx at the front; each Wordpress instance’s web server is published to a separate port)
I found lots of tips about how to isolate tenants, how you can use namespaces, etc., but no concrete examples on how I should configure two instances of Wordpress on the same server, linked up to one MySQL database server.
Does anyone have some pointers? Thanks!