Member-only story

CI/CD pipeline to deploy a web application on Google Kubernetes Engine (GKE) from GitHub

Amit Rai
5 min readMar 24, 2021

--

Google Kubernetes Engine (GKE), a management and orchestration service for container clusters within Google Cloud. When we use GKE to run our containerized workload, Google Cloud provides us the advanced cluster management features like Node pools, automatic scaling, Node auto-repair, logging/monitoring, and Google Cloud’s load balancer. You can interact with GKE using the gcloud command-line interface or the Google Cloud Platform Console.

To learn about Google Kubernetes Engine, click here

This article is just to show you how to deploy a containerized (docker) simple Django web application on GKE and set up CI/CD pipeline in GKE using cloud build to automatically deploy new changes from GitHub. A high-level flow diagram:-

CI/CD Pipeline Flow Digram

Prerequisites:

1. Google cloud account with free tier/credit

2. GitHub account

3. Knowledge of Django (python)

To follow this exercise, you can download the code from GitHub. This is a single-page Django (Python) web application with a dockerfile to build as a container(docker) image. Create your own repository on GitHub and upload the application code that you can deploy in GKE later.

--

--

Amit Rai
Amit Rai

Written by Amit Rai

AWS Architect | AWS DevOps | Developer | Generative AI | Enthusiastic Writer | www.linkedin.com/in/amitraikkr

No responses yet