I want set a integration as kind of Custom Domains - Google Cloud Load Balancing with several domain.
I have a problem with the syntax of the command.
In load balancer, SSL certificate can be built to support multiple domains. So, How to create a integration with several domain mapping?
sample command:
gcloud beta run integrations create --type=custom-domains --region=us-central1 --parameters='set-mapping=domain1.com:serviceName'
In this image, you can see that it is possible to define with several domains:
The GCP document links:
Hi @bahador1988,
Welcome to Google Cloud Community!
gcloud beta run integrations create --type=custom-domains --region=us-central1 --parameters='set-mapping=domain1.com:serviceName,domain2.com:serviceName'
gcloud beta run integrations update --type=custom-domains --region=us-central1 --parameters='add-mapping=domain3.com:serviceName'
gcloud run services describe serviceName --platform=managed --region=us-central1
Thanks for your reply.
I tried the command you posted with real values (domain and service name).
gcloud beta run integrations create --type=custom-domains --region=us-central1 --parameters='set-mapping=domain1.com:serviceName,domain2.com:serviceName'
But I get the following error:
ERROR: (gcloud.beta.run.integrations.create) argument --parameters: Bad syntax for dict arg: [domain2.com:serverName]. Please see `gcloud topic flags-file` or `gcloud topic escaping` for information on providing list or dictionary flag values with special characters.
Usage: gcloud beta run integrations create --type=TYPE [optional flags]
optional flags may be --help | --name | --parameters | --region | --service
For detailed information on this command and its flags, run:
gcloud beta run integrations create --help
I emphasize again that I used the real domain name and service name.