How to create a Google CDN for a GKE service

跟風遠走 提交于 2021-02-06 11:52:19

问题


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?


回答1:


I just wrote a post about using the Google CDN with Kubernetes:

https://medium.com/@chees/code-cooking-kubernetes-e715728a578c

The important parts:

  • 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)


来源:https://stackoverflow.com/questions/39562769/how-to-create-a-google-cdn-for-a-gke-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!