如何为GKE服务创建Google CDN [英] How to create a Google CDN for a GKE service
问题描述
我已经在GKE(kubernetes)上部署了一个wordpress网站,并且可以像mysite.test.com这样从Internet访问我的网站,并且可以像魅力一样工作.现在,我想使用Google CDN来加快访问速度.我尝试使用Ingress资源,但我想使用Google控制台网络"标签上的负载平衡来做到这一点.我需要采取什么步骤?
I've deployed a wordpress site on GKE (kubernetes) and I can access my Site from the internet like this mysite.test.com and works like a charm. Now I want to use Google CDN to accelerate access. I've tried using an Ingress resource but I would like to do it using a Load Balancing on the Networking tab on Google Console. What steps do I need to take?
推荐答案
我刚刚写了一篇有关在Kubernetes上使用Google CDN的帖子:
I just wrote a post about using the Google CDN with Kubernetes:
https://medium.com/@chees/code-cooking-kubernetes-e715728a578c
重要部分:
- 通过
-type = NodePort
使用服务 - 为此服务创建 ingress
- 在创建的后端服务上使用
-enable-cdn
(您可以从命令行或通过console.cloud.google.com上的网络"标签执行此操作)
- Use a service with
--type=NodePort
- Create an ingress for that service
- Use
--enable-cdn
on the created backend-service (you can do this from the command line or through the networking tab on console.cloud.google.com)
这篇关于如何为GKE服务创建Google CDN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!