In this project I am deploying WordPress site and connecting it to MySQL server for the database but wait this is not it , the real project is what's happening in the Back end. In Back end I have used Google Load Balancer Services with Google Kubernetes Engine which empower my Website to handle a lot of traffic with zero down time and High scalability.
So this is how i did it
- First thing we need to do is to create a Kubernetes Cluster.
- Click on Create cluster and by giving simple information like name of your cluster, region and data center we can create the Cluster.
- It may take few minutes. after it is done you will find a page like this
- Now we need to connect to this kubernetes Cluster there are two ways to connect to the cluster
- First method is we can download kubernetes in our system and using the CLI of our system to connect to the cluster but this method is little difficult and time consuming.
- Simple way is just open cloud shell it has pre installed kubernetes you can directly get started with kubernetes.
- Now to connect with kubernetes click the connect button visible on the screen and click on run in cloud shell
- To deploy our WordPress OS in our cluster
- When it is successfully deployed we need to create Load Balancer
- Now even if we delete all pods, kubernetes will detect it and redeploy all the pods again. Let's try it
- Create a MySQL instance
- And we are done, to check our site use Cluster Public IP to access the page
This confirms that our WordPress Setup is successful .
Thank You!!!