title: Running multiple applications on Kubernetes. How to create the structure?
body: <p>This is more of a theoretical question. How do you guys create the structure of a Kubernetes deployments/services/pods that runs multiple applications?</p>
  
  <p>Let's say I want to run 3 Wordpress websites on my servers. For this I need: Nginx, MySQL, PHP-FPM and the Wordpress code base.</p>
  
  <ol>
  <li><p>Is it better to spin off separate pods/services for Nginx, MySQL, PHP-FPM that will serve all 3 Wordpress websites and create 3 Wordpress pods/services for the 3 websites?</p></li>
  <li><p>OR is it better to create a separate pods/service for each one of the websites, therefore the grouping would be: </p>
  
  <ul>
  <li>Pod1: Nginx, MySQL, PHP-FPM, Wordpress</li>
  <li>Pod2: Nginx, MySQL, PHP-FPM, Wordpress</li>
  <li>Pod3: Nginx, MySQL, PHP-FPM, Wordpress</li>
  </ul></li>
  </ol>
  
  <p>With option 2 I would need somehow to route the specific website traffic to the specific service/pod</p>