Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Labs

Deploying WordPress and MySQL to GKE

In this lab, we will create a reasonably complex application stack on Google Kubernetes Engine, creating deployments for WordPress and MySQL and utilizing persistent disks. To complete this lab, you should have some basic experience and familiarity with Google Cloud Platform and Google Kubernetes Engine.

Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 23, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create the GKE Cluster and Storage Class
    1. Create a three-node GKE standard cluster using the n1-standard-1 instance type.
    2. Create a new storage class object to utilize SSD persistent disks. You can use the ssd-storageclass.yaml file in the supporting Git repo.
  2. Challenge

    Create Persistent Volumes
    1. Create persistent volume claims for MySQL and Wordpress. You can use the mysql-pvc.yaml and wordpress-pvc.yaml files in the supporting Git repo.
  3. Challenge

    Deploy MySQL
    1. Create a secret object called mysql to store the MySQL DB root password. If you are using the mysql-secret.yaml file in the GitHub repo, you should change the value of the password for security reasons. You will need to base64 encode a new value.

    2. Create the MySQL deployment. You can use the mysql-deployment.yaml file in the GitHub repo.

    3. Create the MySQL service. You can use the mysql-service.yaml file in the GitHub repo.

      echo -n mypassword | base64 -w 0
      
  4. Challenge

    Deploy WordPress
    1. Create the WordPress deployment. You can use the wordpress-deployment.yaml file in the GitHub repo.
    2. Create the WordPress service. You can use the wordpress-service.yaml file in the GitHub repo.

    It will take a few minutes for the GCP load balancer to assign a public IP address, after which you should be able to access the WordPress site by following the link from the Services & Ingress tab in the GKE section of the GCP console.

    You should then be able to access your new installation.

    Note: WordPress installations can be insecure, and you should not leave yours running for long before concluding and stopping this lab.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight