WordPress in Kubernetes and AWS RDS

Image for post
Image for post

What we are going to do?

  1. WordPress in Kubernetes Cluster (Local Minikube used here)
  2. Database for WordPress is deployed in AWS Relational Database Service (RDS)
  3. Mentioned things are done using Infrastructure as a Code (Terraform used here)

This task has been done on the following resources:

  1. Windows 10 as WorkStation
  2. AWS Account (Free-tier)
  3. Terraform v0.12.29
  4. Kubectl v1.18.0
  5. Minikube v1.12.3 (in a Virtual Machine)

Let’s fire up the code and deploy it.

aws configure --profile <profilename>
Image for post
Image for post
Image for post
Image for post
Resources created
Image for post
Image for post
Image for post
Image for post
Checking database details

All the used codes with steps are available on my GitHub.

Written by

Just a tech enthusiast… Research, implement and share is what I like to do

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store