2024
What I learned in 2024.
2024-07-05¶
GKE Gateway vs Ingress¶
Requirement
- *.rammus.comhttp://dev.eslite.com/ + GKE
- free cert + auto renew + IaC
- GCP LB -> GKE service
- enable CDN, WAF
- img.rammus.comhttp://dev.eslite.com/ -> GKE service → GCS
- enable CDN
Study:
- GKE gateway 不能用 CDN, 可以用 armor
- GKE ingress 才能用 armor + CDN
- GKE ingress + wildcard certificate
- 不能用 CRD: ManagedCertificate https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs#limitations ,這會做成舊版的 SSL certificate
- 要用 dns-auth https://cloud.google.com/certificate-manager/docs/deploy-google-managed-dns-auth#create-cert-dns-auth
- (optional) GKE ingress + cert-manager(Let's Encrypt),要用以下兩篇教學