Hands-on Google Kubernetes Engine, Infrastructure as Code, GitHub Actions (Part II)
Channel: FullstacKAGE
Date: 13/03/2022

𝐇𝐞𝐥𝐥𝐨 𝐚𝐧𝐡 𝐞𝐦, đâ𝐲 𝐥à 𝐯𝐢𝐝𝐞𝐨 𝐭𝐢ế𝐩 𝐭𝐡𝐞𝐨 𝐭𝐫𝐨𝐧𝐠 𝐬𝐞𝐫𝐢𝐞𝐬 𝐯ề 𝐆𝐨𝐨𝐠𝐥𝐞 𝐊𝐮𝐛𝐞𝐫𝐧𝐞𝐭𝐞𝐬 𝐄𝐧𝐠𝐢𝐧𝐞. 𝐓𝐫𝐨𝐧𝐠 𝐯𝐢𝐝𝐞𝐨 𝐧à𝐲 𝐬ẽ 𝐜ó 𝐤𝐡á 𝐧𝐡𝐢ề𝐮 𝐤𝐢ế𝐧 𝐭𝐡ứ𝐜 𝐩𝐡ứ𝐜 𝐭ạ𝐩 𝐧𝐡ư𝐧𝐠 𝐫ấ𝐭 𝐭𝐡ú 𝐯ị.

𝐓𝐫𝐨𝐧𝐠 𝐯𝐢𝐝𝐞𝐨 𝐦ì𝐧𝐡 𝐬ẽ:
- 𝐒𝐞𝐭 𝐮𝐩 𝐦ô𝐢 𝐭𝐫ườ𝐧𝐠 để 𝐜𝐡ạ𝐲 𝐓𝐞𝐫𝐫𝐚𝐟𝐨𝐫𝐦
- 𝐏𝐫𝐨𝐯𝐢𝐬𝐢𝐨𝐧 𝐜𝐥𝐨𝐮𝐝 𝐈𝐧𝐟𝐫𝐚𝐬𝐭𝐫𝐮𝐜𝐭𝐮𝐫𝐞 𝐭𝐫ê𝐧 𝐆𝐨𝐨𝐠𝐥𝐞 𝐂𝐥𝐨𝐮𝐝 𝐬ử 𝐝ụ𝐧𝐠 𝐓𝐞𝐫𝐫𝐚𝐟𝐨𝐫𝐦
- 𝐆𝐢ả𝐢 𝐭𝐡í𝐜𝐡 𝐯à 𝐃𝐞𝐦𝐨 𝐜á𝐜 𝐂𝐈 𝐏𝐢𝐩𝐞𝐥𝐢𝐧𝐞𝐬 𝐬ử 𝐝ụ𝐧𝐠 𝐆𝐢𝐭𝐇𝐮𝐛 𝐀𝐜𝐭𝐢𝐨𝐧𝐬

🔔 Subcribe và bật chuông để cập nhật video mới nhất từ mình nha!
🍵 Buy Me a Coffe: https://streamelements.com/fullstackage/tip

#fullstackage #gke #googlecloud #gcp

▬▬▬▬▬▬ 🔥Nội dung  ▬▬▬▬▬▬

00:00 - Mở đầu
00:53 - Technical Requirements
03:49 - Giới thiệu Sample Application sử dụng
04:55 - B1: Khởi tạo GCP Project
05:20 - B1: Cấp phép sử dụng Service & APIs
08:07 - B2: Fork GitHub Repositories
09:21 - B3: Clone Infrastructure Repository
12:02 - B4: Khởi tạo GCP Service Account Key
14:27 - B5: Khởi tạo file .env
15:16 - B6: Khởi tạo file config.gcs.tfbackend
16:39 - B7: Khởi tạo file terraform.tfvars
18:36 - B7: Khởi tạo GitHub Personal Access Token
19:59 - B7: Lưu vào Secret Manager
21:53 - B8: Provision Infrastructure sử dụng Terrraform
24:04 - Giải thích Terraform Execution Plan (Hack não)
31:14 - Apply Terrraform Plan 
33:32 - Kiểm tra Cloud Resources đã được khởi tạo trên GCP
40:27 - Giải thích GitHub Actions Workflow (CI Pipelines) 
44:12 - Giải thích Build Container Image Workflow  (Backend Repository)
46:32 - Giải thích Build Container Image Workflow  (Frontend Repository)
47:59 - Giải thích Deploy Manifes Files Workflow (Manifest Repository)
49:50 - Giải thích Load SQL Workflow (Backend Repository)
51:31 - Trigger Load SQL Workflow (Backend Repository)
52:34 - Trigger Build Container Image Workflows (Backend + Frontend)
55:26 - Kiểm tra Google Cloud sau khi build Container Images
56:00 - Kiểm tra  Pull Request Manifest Repository
57:00 - Trigger Deploy Manifest Files Workflow
57:50 - Kiểm tra Google Cloud sau khi deploy
59:51 - Kiểm tra Sample Application
1:00:15 - Xóa Cloud Resources sau khi hoàn thành
1:01:50 - Kết thúc (cảm ơn anh em)

▬▬▬▬▬▬ 🔗 Link tham khảo ▬▬▬▬▬▬
✅ Repositories
- Infrastructure: https://github.com/p-le/devops-todoapp-infra-v2
- Backend: https://github.com/p-le/devops-todoapp-backend
- Frontend:  https://github.com/p-le/devops-todoapp-frontend
- Kubernetes Manifests: https://github.com/p-le/devops-todoapp-manifests

✅ Tools:
- gcloud CLI: https://cloud.google.com/sdk/docs/install
- kubectl: https://kubernetes.io/docs/tasks/tools/
- terraform: https://www.terraform.io/
- tfenv: https://github.com/tfutils/tfenv
- Cloud Shell: https://cloud.google.com/shell

✅ Google Cloud Documents:
- Workload Identity GKE: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
- Workload Identity Federation: https://cloud.google.com/iam/docs/workload-identity-federation
- Workload Identity Federation & GitHub Actions: https://cloud.google.com/blog/products/identity-security/enabling-keyless-authentication-from-github-actions

✅ Other Document:
- SSH Github: https://docs.github.com/en/authentication/connecting-to-github-with-ssh
- Personal Access Token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
- Create React App custom env: https://create-react-app.dev/docs/adding-custom-environment-variables/


▬▬▬▬▬▬ Contact ▬▬▬▬▬▬
Facebook: https://www.facebook.com/fullstackage
LinkedIn: https://www.linkedin.com/in/phuquangle/