This quickstart enables Cloud CDN for an existing HTTP(S) load balancing setup. For additional instructions on enabling, disabling, and configuring Cloud CDN, or if you do not already have an HTTP(S) load balancer configured, see Using Cloud CDN.
Read the Overview for an introduction to Cloud CDN.
Enable Cloud CDN for a pre-existing backend service
To enable Cloud CDN for a pre-existing backend service:
- Go to the Cloud CDN page in the Google Cloud Platform Console.
Go to the Cloud CDN page
- Click Add origin.
- In the Origin pull-down menu, click Select origin.
- Select the load balancer to use as a Cloud CDN origin.
- Click Add.
gcloud compute backend-services update [BACKEND_SERVICE_NAME] \ --enable-cdn
That's it. As users request content, Cloud CDN begins caching that content at the edges of the Google network.