WORDPRESS ON THE TOP OF K8S CLUSTER USING GCP SERVICES.

What is GKE?🤔

Google Kubernetes Engine (GKE) provides a managed environment for deploying, managing, and scaling your containerized applications using Google infrastructure. The GKE environment consists of multiple machines (specifically, Compute Engine instances) grouped together to form a cluster.

What is WordPress?🤔

WordPress is a free content management system used to build and maintain websites. Its ease of use and unique blogging features have helped it become the most popular blogging tool on the web.

👉Step-1

Just go to your GCP Console and click on projects and then click on Create New Project.

👉Step-2

What is VPC?

A virtual private cloud (VPC) is the legitimate division of a specialist co-op’s open cloud multi-inhabitant design to help private distributed computing. This model empowers a venture to accomplish the advantages of private cloud — for example, progressively granular authority over virtual systems and a separated domain for delicate outstanding tasks at hand — while as yet exploiting open cloud assets.

Subnets

Subnets are the following bit of the VPC. Why utilize distinctive subnets in your VPC and not just leave everything in one major glad (family) organize? There are various purposes behind this.

Create a VPC network and VM instances

Create an auto mode VPC network with Firewall rules

  1. In the Console, navigate to Navigation menu< VPC network < VPC networks, and then click Create VPC network.
  2. Set the Name to developvpc for develop-1808 and productvpc for product-1808.
  3. For Firewall rules, check all available rules. (These are the same standard firewall rules that the default network had) and the IP should be 0.0.0.0/0 .
  4. Now create Subnet creation mode.
  5. Click Create, then wait for mynetwork to be created. (Notice that a subnet was created for each region)
  6. Record the IP address range for the subnets.

👉Step-3

Same will be followed for Product-1808 and after creating VPC for both the The only difference in both the projects is both the VPC are launched in different regions.

👉Step-4

Now we will launch the kubernates cluster in develop-1808 project.

kubectl create deployment abhi --image=wordpress
kubectl expose deployment abhi --type=LoadBalancer --port=80
kubectl get all

👉Step-5 & Step-6

For creating SQL DB just fill out the name, password, region where we want to deploy our SQL DB.

--

--

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