GCP の 11 種類の LB を「要件 → 正解」で即答するための思考プロセス。
| 要件キーワード | 正解 LB |
|---|---|
| HTTPS グローバル + WAF + CDN | Global External Application LB |
| HTTPS 単一リージョン + 低コスト (Standard Tier) | Regional External Application LB |
| TCP/UDP Anycast、IP 保持 | External Passthrough NLB |
| TLS 終端 + グローバル TCP | Global External Proxy NLB |
| VPC 内 HTTPS、マルチリージョン | Cross-region Internal Application LB |
| VPC 内 HTTPS、単一リージョン | Regional Internal Application LB |
| VPC 内 TCP/UDP、IP/Port 保持、Next Hop | Internal Passthrough NLB |
| VPC 内 TCP/UDP、TLS 終端 | Internal Proxy NLB |
| NEG 種別 | 用途 | 使える LB |
|---|---|---|
GCE_VM_IP_PORT (Zonal) | VM の IP:port 直接 | 全て (Container-native LB の起点) |
| Internet NEG (FQDN/IP) | オンプレ/他クラウド | External Application/Proxy LB |
| Serverless NEG | Cloud Run / Functions / App Engine | Application LB |
| Hybrid NEG | オンプレ/他クラウド (private) | Internal Application/Proxy LB |
| PSC NEG | マネージドサービス公開 | Application LB |
| モード | Passthrough | Proxy/App |
|---|---|---|
| NONE | ✅ | ✅ |
| CLIENT_IP | ✅ | ✅ |
| CLIENT_IP_PORT_PROTO (5-tuple) | ✅ | ✗ |
| GENERATED_COOKIE | ✗ | ✅ |
| HEADER_FIELD | ✗ | ✅ |
| HTTP_COOKIE | ✗ | ✅ |