Secure deployment of MERN Stack application to GCP Cloud Kubernetes Cluster
Автор: Cybersecurity & Coffee
Загружено: 2023-05-16
Просмотров: 795
Описание:
In this video, we answer question, how to securely deploy MERN Stack APP into Google Cloud Kubernetes Cluster?
We are going to discuss simple steps, to deploy a MERN STACK application to GCP Kubernetes cluster. We dockerize the app and push the image to GCP Container Registry and run the app on GCP GKE(Google Kubernetes Engine) Cluster.
Let's get started. Before that, pls subscribe, add comments and pls hit the like button.
We follow steps:
1. Install a pre-requisites- Gcloud CLI, Configure the systems
2. Setup a Mongo Collection in MongoDB Atlas with GCP platform.
3. Dockerise the web application
4. Run the dockered web application for testing.
5. Pushing docker image to Container Registry
6. Provisioning GKE Cluster
7. Configure KubeCTL with GKE Cluster
8. Deploy Kubernetes Objects on GKE Cluster
9. Access Web App
10. Conclusions
Source Code GitHub path for REACT Application: https://github.com/sathyannarayan/Mer...
Service Accounts:
You may need to have service account to run and deploy objects to GKE Cluster. The Service account should have necessary admin permission on Storage Account and Container Registry. We will discuss this in coming sessions.
MongoDB Atlas is Fully managed cloud NoSQL database. Atlas is available Google Marketplace and will be billed under single GCP account.
Manifest file description:
Stage 1:
1. Starting with base image node:14-slim
2. Copy all react source files
3. Install dependencies
4. Build react App, assets available in build folder.
Stage 2:
1. Start from base image:node:14-slim.
2. Copy nodejs packages.json into ./api folder.
3. Install dependencies.
4. Copy server.js into same folder.
Stage 3:
1. Start from base image node:14-slim
2. Copy built files to UI/build
3. Copy built files to Api/build
Run node "api.bundle.js"
Thanks is all, Thanks for watching. Please subscribe, add comments to topics you want me to cover. I will be happy to content.
If you like the vide click on like button.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: