The walk
The same three modes as chapter 18.1: request path, return path, and break it.
hop 1 of 8 · To Cloudflare
What happens
api.kade.lk, and Cloudflare's own rate limit on checkout runs here, keyed on the real shopper.Decided by
Packet
Recorded in
What is different from the VM path
| # | VM path (18.1) | Cloud Run path (this chapter) | |
|---|---|---|---|
| 1 | Backend | Instance group, VMs in sn-app | Serverless NEG, instances in Google's network |
| 2 | Health checks | Two: load balancer and autohealing | None: Cloud Run manages instances itself |
| 3 | Who may reach the backend | Firewall rule from Google's ranges to the service account | Cloud Run's ingress setting |
| 4 | Enters kade-vpc | Already inside | Only for outgoing traffic, through Direct VPC egress |
| 5 | VPC Flow Logs see shopper traffic | Yes, the load balancer to VM leg | No; only the outgoing calls from sn-run |
| 6 | Outgoing to the internet | Cloud NAT on sn-app | Cloud NAT on sn-run, needs all-traffic |
| 7 | Scaling limit to watch | Max VMs in the group | Max instances, and NAT ports at that size |
Kadé's whole network, on one page
Everything the course built, with the real names. Use it as a map when something breaks, or as a checklist when building a network like it:
Shopper → Cloudflare → load balancer → URL map → Cloud Armor → one of three backends. Everything a backend calls goes out through kade-vpc on the right.
Chapter 0's findings, closed
| # | Finding in chapter 0 | Now | Fixed in |
|---|---|---|---|
| 1 | The default network still exists | closed Deleted; an organization policy stops new projects getting one | 2, 17 |
| 2 | kade-allow-ssh: port 22 open to everyone | closed IAP only, from 35.235.240.0/20; folder policy blocks 22 from the internet; OS Login | 6.1, 6.2, 5.2 |
| 3 | kade-allow-web: 80, 443, 8080 open to everyone | closed Deleted; only Google's front ends reach backends, by service account | 5.1 |
| 4 | kade-allow-internal: every port between all VMs | closed Deleted; the database is Cloud SQL on a private IP | 5.1, 9 |
| 5 | No way to reach the internet | closed Cloud NAT with 34.87.200.7 on PayGate's allow-list | 7, 10 |
| 6 | Hardcoded database IP | closed db.kade.internal in a private zone | 8 |
| 7 | Database VM patched and backed up by hand | closed Cloud SQL, private IP only, encrypted connections, automatic backups | 9 |
| 8 | Nothing is logged | closed Load balancer, flow, firewall and NAT logs; dashboard; eight alerts | 16.1, 16.2 |
| 9 | All VMs run as the default service account | closed One service account per role; firewall rules target them | 5.1, 12.2 |
Self-check
Six questions about this path and the course as a whole:
1.PayGate rejects Kadé's calls after a deploy. The Cloud Run service shows egress private-ranges-only. Why does that matter?
2.Why do VPC Flow Logs never show the shopper's request reaching kade-api?
3.Some payments fail only at peak, and the NAT log shows OUT_OF_RESOURCES. What is the first fix to try?
4.What lets Cloud Run accept requests from the load balancer but not from its run.app address?
5.Which control stops a developer re-adding an external IP to a VM next month?
6.Cloud Armor rate-limits by source IP and many shoppers get 429. Why?
0 of 0 right · 6 left
Where to go from here
| # | Next step | Why |
|---|---|---|
| 1 | Apply the rollout plans in chapters 16.2 and 17 to a real project | They are ordered by value for effort; Day 1 of each takes about an hour |
| 2 | Write the network as code (Terraform) | Turns this course's settings into something reviewed and repeatable (chapter 17 section 09) |
| 3 | Multi-VPC design, if you grow into it | Chapter 14 section 06 lists the topics, in order |
| 4 | The exam-angle boxes across the chapters | Together they cover the networking questions in Google's associate and professional cloud exams |