Difficulty: intermediate
Estimated Time: 45-60 minutes

BoxBoat Logo

Now that we've been working with Pods, ReplicaSeta, Deployments, and Services, let's put everything together. We will deploy WordPress using basic configuration.

WordPress is one of the most popular CMS and website platforms, with more than 60 million production installations. We'll work together to configure the frontend PHP/Webserver, and then you'll work in groups to configure the MySQL backend.

Congratulations! Now you have enough experience to create simple applications using Pods, ReplicaSets, Deployments, and Services!

Simple WordPress Lab

Step 1 of 5

WordPress Application

WordPress Deployment

The first thing we'll do is work together to create our WordPress Deployment, so follow along, and help out where necessary.

Here is the configuration we'll need to provide:

  1. apiVersion
  2. kind
  3. Deployment metadata (name and labels)
  4. ReplicaSet selector
  5. Pod Metadata (labels)
  6. WordPress Container
    1. image: wordpress:4.8-apache
    2. name
    3. environment variables
      1. WORDPRESS_DB_HOST
      2. WORDPRESS_DB_PASSWORD
    4. container port 80
    5. emptyDir volume mounted to /var/www/html

Unfortunately, we won't be able to actually test this until MySQL is working, which you'll work on soon.