Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Google Cloud Platform for DevOps Professionals

Google Cloud Platform for DevOps Professionals

by Javier Ramirez
DevOps Pro Vilnius 2016

DevOps Pro

June 06, 2016
Tweet

More Decks by DevOps Pro

Other Decks in Technology

Transcript

  1. Adding a new server: * call (using a landline) or

    send a fax to the provider * pay via bank transfer * wait for a few days/weeks * set up the server on your own server room * hope it won't break
  2. deploying software: * code locally on your OS * submit

    to CVS and manually build * send package and SQL separately to IT * wait until the time slot they give you (next week, probably) * test (by hand) everything is working * hope it won't break
  3. Devops work areas Provisioning infrastructure Deploying with confidence Monitoring and

    alerting Security and disaster prevention Self-healing Performance
  4. Provisioning infrastructure: AppEngine “Zero ops” applications. Just deploy and forget*

    Of course you still need to worry about monitoring, backups, security.. but infrastructure and scaling are automatic *you need to adjust to the sandbox
  5. Provisioning infrastructure: Compute Engine Virtual Machines. Total freedom to do

    as you wish. Powerful networking. Networks, subnetworks, VPNs, forwarding rules, routes...
  6. Provisioning infrastructure: Compute Engine gcloud compute --project "javier-cp300" instances create

    "instance-1" --zone "europe-west1-c" --machine-type "n1-standard-1" --network "default" --maintenance-policy "MIGRATE" --scopes default="https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring.write", "https://www.googleapis.com/auth/cloud.useraccounts.readonly" --image "/javier-cp300/test-osv" --boot-disk-size "10" --boot-disk-type "pd-ssd" --boot-disk-device-name "instance-1" ** machine types are flexible: choose the CPUs or RAM you really need
  7. POST https://www.googleapis.com/compute/v1/projects/javier-cp300/zones/europe-west1-c/instances { "name": "instance-1", "zone": "projects/javier-cp300/zones/europe-west1-c", "machineType": "projects/javier-cp300/zones/europe-west1-c/machineTypes/n1-standard-1", "metadata":

    { "items": [] }, "tags": { "items": [] }, "disks": [ { "type": "PERSISTENT", "boot": true, "mode": "READ_WRITE", "autoDelete": true, "deviceName": "instance-1", "initializeParams": { "sourceImage": "projects/javier-cp300/global/images/test-osv", "diskType": "projects/javier-cp300/zones/europe-west1-c/diskTypes/pd-ssd", "diskSizeGb": "10" } } ], "canIpForward": false, "networkInterfaces": [ { "network": "projects/javier-cp300/global/networks/default", "accessConfigs": [ { "name": "External NAT", "type": "ONE_TO_ONE_NAT" } ] } ], "description": "", "scheduling": { "preemptible": false, "onHostMaintenance": "MIGRATE", "automaticRestart": true }, "serviceAccounts": [ { "email": "default", "scopes": [ "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write",
  8. Google Cloud Storage Static files with free CDN for public

    contents Very cheap (up to $0.01 per GB/month) Convenient command line for copying, managing or rsync
  9. Self-healing Managed instance groups with health-checks make sure there are

    always as many healthy instances as you configure
  10. A squirrel did take out half of our Santa Clara

    data centre two years back Mike Christian, Yahoo Director of Engineering
  11. Cut-off Armenia from the Internet for almost one day* *

    By accident, while scavenging copper
  12. Some data center outages reported in 2015: * Amazon Web

    Services * Apple iCloud * Microsoft Azure * IBM Softlayer * Google Cloud Platform * And of course every hosting with scheduled maintenance operations (rackspace, digital ocean, ovh...)
  13. Storage and big data services * Cloud SQL: Managed MySQL

    * Cloud Data Store: NoSQL * BigQuery: BigData analytics * Dataflow: Streaming BigData * Dataproc: Managed Hadoop and Spark * Pub/Sub: High performance message queue
  14. Let's add CDN and DNS So you can manage all

    your services from a single point
  15. Why not the cloud It's too slow I am limited

    in what I can do I will get vendor lock-in I cannot legally host my data in the cloud Google will spy on my data
  16. Google will spy on my data * GCP is not

    Gmail. SLA * Encryption at rest and in transit * Bring your own keys * ISO standards
  17. Cannot host my data on the cloud public/private hybrid clouds

    Cloud carrier interconnect, direct peering and CDN interconnect