My server is supporting reflection and deployed to GCP CloudRun.
How to run the same command to list the service hosted in CloudRun?
I can get the endpoint like this:
ENDPOINT=$(\
gcloud run services list \
--project=${GCP_PROJECT} \
--platform=managed \
--format="value(status.address.url)" \
ENDPOINT=${ENDPOINT#https://} && echo ${ENDPOINT}
The result looks like this:
The grpcurl for listing the services is documented like this:
grpcurl localhost:8080 list
It is expecting the port number. In cloud run 8080 is the port number of the service but
externally it is 443 because of TLS.
How to list the services in that case?