Google Kubernetes Engine is a fully managed Kubernetes cluster offered by Google Cloud Platform.
GKE offers two modes of the operational cluster: Standard and Autopilot.
Standard is the full-fledged cluster that gives you complete control over the nodes to tune and run customized workloads.
Autopilot mode is a hassle-free, fully managed solution that manages your entire cluster’s infrastructure without worrying about configuring and monitoring. Although it comes with per-pod billing, Autopilot ensures you pay only for your running pods, not system components, operating system overhead, or unallocated capacity.
In this blog, we are going to deploy a highly available application on GKE with a step-by-step guide.
A GCP Account
A sample WAR application
A MySQL instance if you have a database connected with the application
Kubernetes components to be covered:
Step by Step Guide
Step 1: Activate GCP Cloud Shell by clicking on the icon from the right top of the console
It will activate the Cloud Shell as per below:
Note: The Project has already been selected as we open Cloudshell from web browser. Use gcloud config set project [PROJECT_ID] to change project.
Step 2: Create a ct-demo repository for storing container images in the Docker repository
$gcloud artifacts repositories create ct-demo\
Step 3: Create a Dockerfile
$mkdir ct-demo&&cd ct-demo
Step 4: Upload your WAR application in CloudShell
Step 5: Create Docker image from Dockerfile in the same directory where WAR file is uploaded
Kubernetes works on the same design principles that run popular Google services and provides the same advantages as automatic management, monitoring, and liveness probes for application containers, automatic scaling, rolling updates, and more. When running your applications on a cluster, you use Google’s 10+ years of technology and experience to run production workloads in containers.
We here at CloudThatare the official Google Cloud Partner, AWS Advanced Consulting Partner, Microsoft gold partner, helping people develop knowledge on cloud and help their businesses aim for higher goals using best in industry cloud computing practices and expertise. We are on a mission to build a robust cloud computing ecosystem by disseminating knowledge on technological intricacies within the cloud space. Our blogs, webinars, case studies, and white papers enable all the stakeholders in the cloud computing sphere.
Feel free to drop a comment or any queries that you have regarding Google Cloud Platform, Google Kubernetes Engine, consulting requirements and we will get back to you quickly. To get started, go through our Expert Advisory page and Managed Services Packagethat is CloudThat’s offerings.