Deployment of WordPress on Kubernetes and SQL Database through GCP

  • Google Compute Engine, which is an infrastructure-as-a-service (IaaS) offering that provides users with virtual machine instances for workload hosting.
  • Google App Engine, which is a platform-as-a-service (PaaS) offering that gives software developers access to Google’s scalable hosting. Developers can also use a software developer kit (SDK) to develop software products that run on App Engine.
  • Google Cloud Storage, which is a cloud storage platform designed to store large, unstructured data sets. Google also offers database storage options, including Cloud Datastore for NoSQL nonrelational storage, Cloud SQL for MySQL fully relational storage and Google’s native Cloud Bigtable database.
  • Google Container Engine, which is a management and orchestration system for Docker containers that runs within Google’s public cloud. Google Container Engine is based on the Google Kubernetes container orchestration engine.
GCP Load balancing
VPC Network
VPC Peering
  1. Creating two Projects devproject & prodproject
VPC network name “securedev”
Here I have asked google to assign some IP range which my network will use
Peering prodproject from devproject
Peering devproject from prodproject
command used to launch instances in devproject
GCP GUI mode confirms that instance is launched
command used to launch the instance
CLI view showing launch of instance in prodproject
GUI view of prodproject
Checking connection from prodproject to devproject
Checking connection from devproject to prodproject
Screenshot of command used in command prompt
Generation kubernetes cluster
Showing all the Cluster launched
Showing cluster is launched
Deployment Launched
Replicas of Deployment Launched
Load Balancer launched
Internal Connection of Load Balancer
Load balancer running over the Kubernetes Deployment
Accessing Database from CLI mode
Connecting database of prodproject with wordpress
Login page for wordpress

--

--

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