Humblebee
Published in

Humblebee

Photo by Kenrick Mills on Unsplash

Virtual machines and networking

Part 2 of Cloud Developer Basics using Google Cloud Platform

Learning objectives and services covered

Virtualization is the core of the cloud…

..but no virtualization without networking

CIDR block for a large network. Screenshot from CIDR.xyz (http://www.cidr.xyz)
Connecting two subnets inside a larger network. Screenshot from Google (https://cloud.google.com/vpc/)
CIDR for an individual address. Screenshot from CIDR.xyz (http://www.cidr.xyz)

Compute Engine: Infrastructure-as-a-service

Compute Engine features. Screenshot from Google (https://cloud.google.com/appengine/)

App Engine: Platform-as-a-service

App Engine features. Screenshot from Google (https://cloud.google.com/appengine/)

Making a choice

Compute Engine machine types. Screenshot from Google (https://cloud.google.com/compute/docs/machine-types)

Concepts

Instance & tenancy

Machine type

Preemptibility

VPC (Virtual Private Cloud) and networking

Subnet/subnetwork

Reservations/reserved instances

VPN (Virtual Private Network)

Network service tiers

Workshop

Step 1: Clone the node-simple-webserver repo

Step 2: Install gcloud CLI tool or update it

Step 3: Enable APIs

Step 4: App Engine (Flex)

Step 5: App Engine (Standard)

<html><head><title>Simple Node.js webserver</title></head><body><p>Simple Node.js webserver that has cats!</p><img src=”https://flo.health/uploads/media/sulu-1230x-inset/06/1326-woman%20with%20cat%20acting%20funny%20around%20its%20pregnant%20owner.jpg?v=1-0&inline=1"></body></html>

Step 6: App Engine Dashboard and settings

Step 7: Set up a firewall rule to block yourself

Step 8: Traffic routing

Step 9: Shut down the GAE application

Step 10: Creating a Google Compute Engine instance

Step 11: Create a GCE web server with a startup script

Bonus: Accessing private VM from public VM

Further studies

Explore more

References

Qwiklabs

--

--

We're a digital product & service studio based in Gothenburg, Sweden. Follow us here to peek into the minds of our staff and see a selection of our work. You can also find out more at https://www.humblebee.se

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mikael Vesavuori

Cloud Software Architect (and Technical Standards Lead) at Polestar