DEPLOYING WORDPRESS WEBSITE ON GCP CLOUD USING SQL AND GKE

DEPLOYING WORDPRESS WEBSITE ON GCP CLOUD USING SQL AND GKE

Hey guys hope you are doing good today we are going to deploy 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 in 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 take 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.

No alt text provided for this image

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 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.

No alt text provided for this image


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 cluster once done there you see an option called connect click on that after that u see a similar screen which we are seeing below.

No alt text provided for this image

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

No alt text provided for this image
No alt text provided for this image

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

No alt text provided for this image
No alt text provided for this image

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

No alt text provided for this image
No alt text provided for this image

Here we are all done deploying our own WordPress website on 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.

Here we come to End of the article thanks for reading till here hope you like it.




要查看或添加评论,请登录

Aditya Gupta的更多文章

  • My Views on Industry Use Cases of Kubernetes/ Devops Session

    My Views on Industry Use Cases of Kubernetes/ Devops Session

    Hey guys hope you all are doing today's article is going to thong I learn from yesterday's session. Yesterday in Linux…

  • My Views on Industry Use Cases of Kubernetes/ OpenShift Session

    My Views on Industry Use Cases of Kubernetes/ OpenShift Session

    hey guys hope you all are doing good this article is related to a session attended by me at Linux world the session was…

  • A Session To Remember On Ansible

    A Session To Remember On Ansible

    Hey guys Hope you all are doing this article is about the wonderful session I had on Monday 28DEC2020. As being…

  • DEPLOYING WORDPRESS USIND AWS RDS AND KUBERNATES

    DEPLOYING WORDPRESS USIND AWS RDS AND KUBERNATES

    Hey guys hope you all are doing good today article gonna be super fun and you can use it for your use as the heading…

  • GCP WORKSHOP FEEDBACK

    GCP WORKSHOP FEEDBACK

    Hey guys yesterday I have completed in days GCP workshop under the guidance of Mr. Vimal Daga sir at LinuxWorld in this…

  • SEMANTIC SEARCH ENGINE FOR Q&A USING ELASTIC SEARCH AND DOCKER

    SEMANTIC SEARCH ENGINE FOR Q&A USING ELASTIC SEARCH AND DOCKER

    Hey guys in today's article is about my DevOps project which I created with my partner. PROBLEM DEFINITION When we are…

    2 条评论
  • Python Bot

    Python Bot

    Hey guys hope you all are doing good. In today's article, we are going to see how to make our own chatbot in python to…

  • Flutter Music player/Video Player

    Flutter Music player/Video Player

    Hey guys hope you all are doing good today we are going to learn very different things which we learn usually today we…

  • Network For Web Portal Using Terraform And Aws

    Network For Web Portal Using Terraform And Aws

    Hey guys hope you all are doing good in today's article we are going to see how to create our VPC, Subnet, Internet…

  • DevOps ASSEMBLY LINE SUMMER INTERNSHIP

    DevOps ASSEMBLY LINE SUMMER INTERNSHIP

    Hey guys Today this article is not about any tech stuff but for it becomes more important some time than learning only…

社区洞察

其他会员也浏览了