SlideShare a Scribd company logo
GCP Best Practices
For Cloud Journey
Bảo Huỳnh
Site Reliability Engineering
27-March-2020
1. GCP Walk Through
2. GCP Best practice (for all)
3. GCP Best practice (GKE operation)
4. Sample Organization report (Mudah)
5. Q&A
Agenda
1. GCP Walk Through
2. GCP Best Practice (Org. setup)
A. Separate Resource Hierarchy
- Different Level for management
- Separate projects for billing control
2. GCP Best Practice (Org. setup)
B. IAC for cloud resources creation
2. GCP Best Practice (Org. setup)
C. Export & analyze billing
- Export to BigQuery
- Visualize with Data Studio
2. GCP Best Practice (Billing Mgmt.)
D. Cost usage control
- Setting Quotas for each resources
- Alert on budget billing
2. GCP Best Practice (Billing Mgmt.)
2. GCP Best Practice (Logging & Monitoring)
E. Logging with Stackdriver
Export to LogSink for future usage
Support below LogSink:
- On-prem LogStore
- Cloud Pub/Sub
- GCS
- BigQuery
2. GCP Best Practice (Logging & Monitoring)
2. GCP Best Practice (Logging & Monitoring)
F. Monitoring with Stackdriver
Metrics Exposure
Alerting Rules based on Metrics
2. GCP Best Practice (Logging & Monitoring)
J. Audit Logging
Answer 4W question: What Who When Where
Types of Audit Trail Log entries for GCP Usage IAM FOR VIEWING
Admin Activity + API calls
+ Other administrative actions [that
modify the configuration or metadata of
resources]
- Enable by default
- Can not disable
- Free
- Project viewer
- Logging / Log Viewer
Data Access + API calls [ that read the configuration /
metadata of resources ]
+ user-driven API calls [ make changes
to user-provided resource data ]
• Disable by default
• Charged by
Google
• Project/Owner
• Logging/Private Logs
Viewer
System Event + Google Cloud administrative actions [
that modify the configuration of
resources ]
(( generated by Google systems; they
are not driven by direct user action ))
- Enable by default
- Can not disable
- Free
- Project viewer
- Logging / Log Viewer
2. GCP Best Practice (Logging & Monitoring)
J. Audit Logging
Type Target Applied Level
Identity and Accessiblity
Management (IAM)
All identities in GCP
- User
- Group
- ServiceAccount
Projects
Orgranization Policy GCP Resources Orgranization
Projects
2. GCP Best Practice (IAM & Policies)
2. GCP Best Practice (IAM & Policies)
Identities and Accessibility Management
- Assign only limited access to resources
- Assign users into different group => then assign group with IAM
- NOT allow any bucket-level access, only access by object-level
2. GCP Best Practice (IAM & Policies)
Organization Policies
- providing the ability to set restrictions on specific resources to determine how
they can be configured and used.
Vietnamese Translate
- Áp constraints lên các resource (VM, CloudFunction, GCS,..)
- Để: quy định các resource này ĐƯỢC configure & sử dụng ntn bởi user
Example:
● Define a constraint to restrict virtual machine instances from having an
external IP address.
● Define a constraint to allow cloud function could use ingress setting (from
user)
● Enforce MFA on employee's account
● Use Cloud Identity / GSuite to manage account for organization
2. GCP Best Practice (Security)
● Private IP Cluster
● Different NodePool for different types of Application
● Enable Stackdriver Logging & Monitoring for service observalibilty
● Security
+ Avoid running as Root (instead using SecurityContext)
+ Enable NetworkPolicy (Ingress/Egress/From/To) for each NS
● Isolation application (in each namespaces) if possible
+ Apply security
+ Enable Quota for Resources (per Namespace)
maxpod * limit CPU/Memory
=> Each application don’t starve out resources of other apps
=> cost control
3. GCP Best Practice (GKE Operation)
● Report based on current GCP’s resources of Mudah
● Recommendation given by GCP experts
● Follow GCP best practices from Google for cloud operation.
4. Sample Organization Report
Questions &
a little Answers

More Related Content

PDF
DevOps for beginners
PPTX
Introduction to Docker - 2017
PDF
Secure your Application with Google cloud armor
ODP
An Introduction To Jenkins
ODP
Introduction to Ansible
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
PDF
A quick introduction to AKS
PDF
AWS vs Azure vs Google (GCP) - Slides
DevOps for beginners
Introduction to Docker - 2017
Secure your Application with Google cloud armor
An Introduction To Jenkins
Introduction to Ansible
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
A quick introduction to AKS
AWS vs Azure vs Google (GCP) - Slides

What's hot (20)

PDF
Argocd up and running
PDF
Google Cloud Networking Deep Dive
PDF
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
PDF
Kubernetes Secrets Management on Production with Demo
PDF
Kubernetes
PPTX
Comprehensive Terraform Training
PPTX
Cloud Security
PPTX
Dockers and containers basics
PDF
Azure Arc Overview from Microsoft
PDF
Gitlab, GitOps & ArgoCD
PPTX
Kubernetes and container security
PDF
Red Hat OpenShift Container Platform Overview
PDF
Cloud Security Strategy
PPT
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
PDF
ArgoCD Meetup PPT final.pdf
PPTX
Azure DevOps
PPTX
Grafana.pptx
PPTX
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
PPTX
DevOps and Cloud
PPTX
Container orchestration overview
Argocd up and running
Google Cloud Networking Deep Dive
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
Kubernetes Secrets Management on Production with Demo
Kubernetes
Comprehensive Terraform Training
Cloud Security
Dockers and containers basics
Azure Arc Overview from Microsoft
Gitlab, GitOps & ArgoCD
Kubernetes and container security
Red Hat OpenShift Container Platform Overview
Cloud Security Strategy
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
ArgoCD Meetup PPT final.pdf
Azure DevOps
Grafana.pptx
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
DevOps and Cloud
Container orchestration overview
Ad

Similar to GCP Best Practices for SRE Team (20)

PDF
Getting more into GCP.pdf
PPTX
Cloud & GCP 101
PDF
Introduction to GCP
PDF
Enterprise Cloud Governance: A Frictionless Approach
PPTX
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
PDF
Reaching for the Clouds: Achieving the Business Benefi ts of Cloud Computing
PPTX
Google Cloud Platform AI Training in Hyderabad | Google Cloud AI Course Online
PPTX
Google Cloud Platform (GCP)
PDF
Digital Forensics and Incident Response in The Cloud
PPTX
Introduction to Google Cloud & GCCP Campaign
PPTX
GDSC BVCOENM - Google Cloud Study Jam October 2021 | Day 1 + Day 2
PPTX
Google Cloud Study Jam | GDSC NCU
PDF
What is Cloud and what are the best practices?
PDF
What is Cloud and what are the best practices?
PDF
Getting Started with Google Cloud Platform: A Beginner’s Guide
PPTX
BSM for Cloud Computing
PDF
Google Cloud Certified Associate Cloud Engineer All-in-One Exam Guide 1st Edi...
PDF
The 5 Stages of Cloud Management for Enterprises
PPTX
GCCP.pptx
PDF
8 Elements of Multi-Cloud Security
Getting more into GCP.pdf
Cloud & GCP 101
Introduction to GCP
Enterprise Cloud Governance: A Frictionless Approach
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reaching for the Clouds: Achieving the Business Benefi ts of Cloud Computing
Google Cloud Platform AI Training in Hyderabad | Google Cloud AI Course Online
Google Cloud Platform (GCP)
Digital Forensics and Incident Response in The Cloud
Introduction to Google Cloud & GCCP Campaign
GDSC BVCOENM - Google Cloud Study Jam October 2021 | Day 1 + Day 2
Google Cloud Study Jam | GDSC NCU
What is Cloud and what are the best practices?
What is Cloud and what are the best practices?
Getting Started with Google Cloud Platform: A Beginner’s Guide
BSM for Cloud Computing
Google Cloud Certified Associate Cloud Engineer All-in-One Exam Guide 1st Edi...
The 5 Stages of Cloud Management for Enterprises
GCCP.pptx
8 Elements of Multi-Cloud Security
Ad

More from Huynh Thai Bao (10)

PPTX
Service Mesh 101 - Digging into your service
PPTX
K8s Webhook Admission
PPTX
CICD pipelines with GitOps
PPTX
ELK - Optimizations & Updates
PPTX
K8s-zero-downtime-the-missing-part
PPTX
Cassandra - decentralized structured database
PPTX
Skaffold - faster development on K8S
PDF
Kubernetes - A Rising Hero
PDF
Vault - Enhancement for K8S secret security
PDF
Enabling GitOps - Architecture for Implementation
Service Mesh 101 - Digging into your service
K8s Webhook Admission
CICD pipelines with GitOps
ELK - Optimizations & Updates
K8s-zero-downtime-the-missing-part
Cassandra - decentralized structured database
Skaffold - faster development on K8S
Kubernetes - A Rising Hero
Vault - Enhancement for K8S secret security
Enabling GitOps - Architecture for Implementation

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Digital Logic Computer Design lecture notes
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Welding lecture in detail for understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Construction Project Organization Group 2.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Well-logging-methods_new................
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Digital Logic Computer Design lecture notes
Lesson 3_Tessellation.pptx finite Mathematics
Welding lecture in detail for understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
OOP with Java - Java Introduction (Basics)
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Construction Project Organization Group 2.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Operating System & Kernel Study Guide-1 - converted.pdf
Well-logging-methods_new................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

GCP Best Practices for SRE Team

  • 1. GCP Best Practices For Cloud Journey Bảo Huỳnh Site Reliability Engineering 27-March-2020
  • 2. 1. GCP Walk Through 2. GCP Best practice (for all) 3. GCP Best practice (GKE operation) 4. Sample Organization report (Mudah) 5. Q&A Agenda
  • 3. 1. GCP Walk Through
  • 4. 2. GCP Best Practice (Org. setup) A. Separate Resource Hierarchy - Different Level for management - Separate projects for billing control
  • 5. 2. GCP Best Practice (Org. setup)
  • 6. B. IAC for cloud resources creation 2. GCP Best Practice (Org. setup)
  • 7. C. Export & analyze billing - Export to BigQuery - Visualize with Data Studio 2. GCP Best Practice (Billing Mgmt.)
  • 8. D. Cost usage control - Setting Quotas for each resources - Alert on budget billing 2. GCP Best Practice (Billing Mgmt.)
  • 9. 2. GCP Best Practice (Logging & Monitoring)
  • 10. E. Logging with Stackdriver Export to LogSink for future usage Support below LogSink: - On-prem LogStore - Cloud Pub/Sub - GCS - BigQuery 2. GCP Best Practice (Logging & Monitoring)
  • 11. 2. GCP Best Practice (Logging & Monitoring) F. Monitoring with Stackdriver Metrics Exposure Alerting Rules based on Metrics
  • 12. 2. GCP Best Practice (Logging & Monitoring) J. Audit Logging Answer 4W question: What Who When Where
  • 13. Types of Audit Trail Log entries for GCP Usage IAM FOR VIEWING Admin Activity + API calls + Other administrative actions [that modify the configuration or metadata of resources] - Enable by default - Can not disable - Free - Project viewer - Logging / Log Viewer Data Access + API calls [ that read the configuration / metadata of resources ] + user-driven API calls [ make changes to user-provided resource data ] • Disable by default • Charged by Google • Project/Owner • Logging/Private Logs Viewer System Event + Google Cloud administrative actions [ that modify the configuration of resources ] (( generated by Google systems; they are not driven by direct user action )) - Enable by default - Can not disable - Free - Project viewer - Logging / Log Viewer 2. GCP Best Practice (Logging & Monitoring) J. Audit Logging
  • 14. Type Target Applied Level Identity and Accessiblity Management (IAM) All identities in GCP - User - Group - ServiceAccount Projects Orgranization Policy GCP Resources Orgranization Projects 2. GCP Best Practice (IAM & Policies)
  • 15. 2. GCP Best Practice (IAM & Policies) Identities and Accessibility Management - Assign only limited access to resources - Assign users into different group => then assign group with IAM - NOT allow any bucket-level access, only access by object-level
  • 16. 2. GCP Best Practice (IAM & Policies) Organization Policies - providing the ability to set restrictions on specific resources to determine how they can be configured and used. Vietnamese Translate - Áp constraints lên các resource (VM, CloudFunction, GCS,..) - Để: quy định các resource này ĐƯỢC configure & sử dụng ntn bởi user Example: ● Define a constraint to restrict virtual machine instances from having an external IP address. ● Define a constraint to allow cloud function could use ingress setting (from user)
  • 17. ● Enforce MFA on employee's account ● Use Cloud Identity / GSuite to manage account for organization 2. GCP Best Practice (Security)
  • 18. ● Private IP Cluster ● Different NodePool for different types of Application ● Enable Stackdriver Logging & Monitoring for service observalibilty ● Security + Avoid running as Root (instead using SecurityContext) + Enable NetworkPolicy (Ingress/Egress/From/To) for each NS ● Isolation application (in each namespaces) if possible + Apply security + Enable Quota for Resources (per Namespace) maxpod * limit CPU/Memory => Each application don’t starve out resources of other apps => cost control 3. GCP Best Practice (GKE Operation)
  • 19. ● Report based on current GCP’s resources of Mudah ● Recommendation given by GCP experts ● Follow GCP best practices from Google for cloud operation. 4. Sample Organization Report