Reputation: 207942
When we create a cloud run service and run it on GKE it does not seem to be possible to change the URL or to map a custom domain to the service.
The domain is currently http://stacko-gke.default.example.com
and the service is https://console.cloud.google.com/run/detail/cluster/us-central1-a/crun/default/stacko-gke/metrics?project=stack-123456
We had to use the CURL trick to specify a host header and that worked, but I would need to be able to change the host for DNS to work properly, please advise.
Upvotes: 0
Views: 655
Reputation: 207942
You have 2 options on Cloud Run:
If you are using HTTPS, the following considerations apply: For Cloud Run, a managed certificate for HTTPS connections is automatically issued when you map a service to a custom domain. Note that provisioning the SSL certificate should take about 15 minutes. You cannot upload and use your own certificates.
example.com
to your own domain https://cloud.google.com/run/docs/gke/default-domain and create a wildcard A record (*) pointing to the IP address of your istio-ingressgateway
.For Cloud Run on GKE, only HTTP is available by default. You can install a wildcard SSL certificate to enable SSL for all services mapped to domains included in the wildcard SSL certificate. For more information see Enabling HTTPS.
You can map multiple custom domains to the same Cloud Run service such as example.com or www.example.com
Upvotes: 2