gcloud compute ssl-certificates create flytime-google-cert --domains=flytime.io,api.flytime.io,socket.flytime.io --global
上面的命令给出了错误
ERROR: (gcloud.compute.ssl-certificates.create) Could not fetch resource:
- Invalid value for field 'resource.managed.domains[0]': 'flytime.io api.flytime.io socket.flytime.io'. Invalid domain name specified.
这有什么不对吗?
如果你把它放在引号里面就可以了:
gcloud compute ssl-certificates create flytime-google-cert --domains="flytime.io,api.flytime.io,socket.flytime.io" --global