Deploy Vuejs Application on Google Kubernetes Engine (GKE)- Blue Green Deployment
I will use GitHub Actions to deploy our VueJS project on Google Kubernetes Engine (GKE).
Overview:
We will deploy the Vuejs Application on Google Kubernetes Engine (GKE). We will use Github actions for the ci/cd pipeline. We will use Google Compute Engine as the self-hosted runner for our GitHub Actions. We will integrate Sonarcube for code analysis and Trivy Image scan to scan our docker images.
Prerequisite
You should have basic Knowledge of Google Kubernetes Engine (GKE), Docker, Kubernetes, and GitHub Actions.
Table of Contents:
- Dockerize Vuejs Application with Nginx for Production
- Create a service account user
- Create a Google Compute Engine Instance
- Add a Self-Hosted Runner To Google Compute Engine Instance
- Docker Installation and Running SonarQube Container
- Integrate SonarQube with GitHub Actions
- Installation of tools (Java JDK, Trivy, Kubectl, Node.js, NPM)
- Creating an Artifact Registry and pushing the image
- Scan the image using Trivy
- Creating GKE Cluster
- Deploy to GKE
Youtube Video:
Feel free to connect with me across various social media channels! Join me on LinkedIn, YouTube, Twitter, GitHub, and Upwork. Your support means a lot. Thanks for taking the time to read this!