DEPLOYING WORDPRESS WEBSITE ON GCP CLOUD USING SQL AND GKE

Gupta Aditya
4 min readJan 3, 2021

--

Using Google Cloud Service Accounts on GKE | by Nick Joyce | Real Kinetic  Blog

Hey guys hope you are doing good today we are going to deploy a WordPress website on GKE using SQL service and also gone to see some concepts of GCP cloud.

In this article, we first create two projects namely developer and production because in GCP whatever we want to do we can do projects only after creating a project go to the billing section, and enable billing for projects.

Once the billing is enabled leave it for 10min because internally API is getting enabled which takes time once everything is ready we are ready to move ahead.

First, we create vpc in each project in different regions and once vpc is created we will do vpc peering so that our vpc is connected internally with local IP and using google internal connection which is fast and secure.

As you can see above we have created a vpc network you can create this network by clicking on create vpc network it will be similar for both the projects once done go to vpc peering and click on create peering connection and follow the steps by selecting which vpc to connect to which vpc if it’s indifferent project select different project once do this thing in both the projects once you did in both the project it will show active.

Now download google cloud SDK and kubectl from the below-given links because we need this to set deployments and all.

https://cloud.google.com/sdk

Link for setup kubectl

Once all this is done we will now launch the Gke cluster once created it might take minutes to create the cluster has once done there you see an option called connect click on that after that u see a similar screen which we are seeing below.

copy this and paste in cmd terminal and run similar cmnd I run in below picture

Once this is created let’s deploy SQL service go to storage and select SQL there set your requirements and in the advance configuration set ingress rule from which port and IP user can come it’s important once done go to WordPress and enter all the details like host, username, password, etc

Once all Done after successful login and installation you can see the above type screen.

Here we are all done deploying our own WordPress website on the GCP cloud using the GKE cluster and SQL service.

Now when you want to delete projects go to manage resource and there select the project you want to delete.

Guys, here we come to the end of this blog I hope you all like it and found it informative. If have any query feel free to reach me :)

Guys follow me for such amazing blogs and if have any review then please let me know I will keep those points in my mind next time while writing blogs. If want to read more such blog to know more about me here is my website link https://sites.google.com/view/adityvgupta/home.Guys Please do not hesitate to keep 👏👏👏👏👏 for it (An Open Secret: You can clap up to 50 times for a post, and the best part is, it wouldn’t cost you anything), also feel free to share it across. This really means a lot to me.

--

--

No responses yet