Summary/總結
本篇文章以 GCP Certificate Manager 實作了萬用憑證的創建並整合進 GKE Gateway,讓您能保護您的應用程式流量,也許有人會好奇怎麼不用 Ingress,原因是目前 GKE Ingress 暫不支援 GCP Certificate manager[5],另外有個限制需要特別提醒大家,目前 GKE Gateway 有支援 Cloud Armor,但還不支援 Cloud CDN,因此使用上要依需求進行考量,我們可以期待 Google 盡快將 Cloud CDN 整合進 GKE Gateway 或將 GCP Certificate Manager 整合進 GKE Ingress 以解決上述限制;若是喜歡開源的解決方案,目前您也能使用 Cert-Manager 取得 Let's Encrypt 簽署的憑證搭配 GKE Ingress 使用,可參考 cert-manager[6]與第三方[7]的教學。
參考資料
[1] https://cloud.google.com/certificate-manager/docs/how-it-works
[2] https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-gateways#deploy_a_global_external_gateway
[3] https://cloud.google.com/certificate-manager/docs/deploy-google-managed-dns-auth
[4] https://cloud.google.com/kubernetes-engine/docs/how-to/secure-gateway
[5] https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#options_for_providing_ssl_certificates
[6] https://cert-manager.io/docs/tutorials/getting-started-with-cert-manager-on-google-kubernetes-engine-using-lets-encrypt-for-ingress-ssl//
[7] https://medium.com/contino-engineering/how-to-automatic-ssl-certificate-management-for-your-kubernetes-application-deployment-94b64dfc9114
撰文者:Robby Hsieh, Solution Architect
10 x Google Cloud 認證,7 x AWS 認證,專注於雲原生產業。擅長分析客戶需求並進行技術評估,以提供最適合的雲端解決方案