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.
gcloud command line tool
The steps on this page can be completed using the Google Cloud Platform Console UI or the
gcloud command line tool.
You can access the
gcloud command line tool in two ways:
Use Google Cloud Shell, which comes with
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.