Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a Google CDN for a GKE service

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?

like image 812
Salvador González González Avatar asked Sep 18 '16 21:09

Salvador González González


People also ask

Does GCP have a CDN?

The Google Cloud CDN is one of over 90 IT services in the Google Cloud Platform (GCP). It offers worldwide server coverage and several useful features. For example, customers can be assigned a global IP address and generate SSL protocols at no additional cost.


1 Answers

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)
like image 153
Christiaan Avatar answered Sep 19 '22 14:09

Christiaan