Skip to content

Instantly share code, notes, and snippets.

This is for your Hands-On and quick review of important topic.
I highly recommend completing the qwiklabs and quest mentioned here as they will give you hands on experience about logging, monitoring
services that you dont have to just mug up, because these are features that you can experience only by doing hands-on so there is no point
in trying to mug up these concepts as these are the more practical than conceptual.
Compute options - https://www.youtube.com/watch?v=Ajhe82IL1b8&ab_channel=Qwiklabs-Courses
Binary Authorization - https://cloud.google.com/solutions/binary-auth-with-cloud-build-and-gke
CD Pipeline usecase - https://cloud.google.com/kubernetes-engine#section-7
Qwiklab-helper-lab - https://google.qwiklabs.com/focuses/1104?parent=catalog
Qwiklab-challenge-lab - https://google.qwiklabs.com/focuses/10457?parent=catalog
Good to know for graph reading Flame graph - https://cloud.google.com/profiler/docs/concepts-flame
Deployment Strategies
- Canary deployment
- B/G deployment [promoting from staging to production]
Review SRE practice
- SLI
- SLO
- SLA
- Error Budget
- Incident
Stackdriver Tracer/profiler
- Check performance
- What will be the impact to the user
- Be able to analyse answer what can be imporved
Stackdriver Debugger
- debug the app engine code
- debugger snapshots
- debugger Logpointsv
Stackdriver logging
- log-based metric
- Enabling Vpc flow logs, cloud audit logs
- exporting logs to may be bigquery, gcs( project levl/ org level )
- logs from compute engine, GKE
- third party logs
- application logs to stackdriver api directly
- basic and advance logging filters
- logging exclusion
- IAM
Kubernetes
- configuration
- secret storage method
- secret rotaion and config changes
Spinnaker
- Deployment strategies ( this is like canary, Blue/green and so on )
- Testing new version
- configuration
cloud build
- Deployment to different services ( App Engine, GKE, Function, clour Run, Firebase)
- configuration
- pipeline triggers
- cloud build github app
- Cloud source Repos
- Cloud Pub/Sub
Links
Cloud build overview - https://cloud.google.com/cloud-build/docs/overview
Container Registry
- immutable artifacts
- Artifact repository
- binary authorization
- IAM policy per environemnt ( have an overview of this )
Links
https://cloud.google.com/container-registry/docs/container-analysis-audit-logging
Exporting logs - https://cloud.google.com/logging/docs/export
Excluding logs - https://cloud.google.com/logging/docs/exclusions
@Rand0mB0t
Rand0mB0t / whitelist_ip.py
Created October 6, 2020 14:43
Python script to whitelist ip in a GCP firewall rule
"""
BEFORE RUNNING:
---------------
1. If not already done, enable the Compute Engine API
and check the quota for your project at
https://console.developers.google.com/apis/api/compute
2. This sample uses Application Default Credentials for authentication.
If not already done, install the gcloud CLI from
https://cloud.google.com/sdk and run
`gcloud auth application-default login`. USING your gmail ACCOUNT associated
@Rand0mB0t
Rand0mB0t / gist:ca88ad678fdef0b3e002c3026abb732d
Created July 30, 2018 16:21 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn