Connect Wordpress Site With Amazon RDS

In this article i will talked about how to connect our wordpress site which is running on my kubernetes with amazon RDS database.

For this first we have to launch the wordpress site on top of kubernetes . Kubernetes can launch by many ways like minikube, kubeadm, amazon eks, gks etc but in my case i used minikube which provides me single node cluster and to deploy wordpress i used terraform code.

So here is my terraform code.

  1. I create service for wordpress site then persistent volume claim then we create deployment for our wordpress.

Now, I will create RDS on amazon.

After fill the username, password and connection.

My wordpress site has been launched!!

#keepcoding #keepsharing #aws #devops

--

--

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
mayank agrawal

I am devops enthusiast always trying to learn new technologies and try to implement in real world to solve real use cases. Creative integrator