'Connect two cloud run services on GCP
I need to deploy two cloud run servicen on GCP, one is frontend and the other is backend so I wanna ask
- is it possible to connect 2 services like this ones?
- if its possible what is the best way of connecting those two services which will be able to communicate?
I searched through the internet didn't find a lot of useful info
Solution 1:[1]
Yes you i'm not going to go into details. but i will give you a quick overview of the workflow. Assuming you don't have the code in source control and this is an already built docker containers.
- you want to load the docker image via gcloud by using docker load to load the docker .tar image.
- next you will tag that image.
- push the image to container registry
- navigate to cloud web-console click create service or you can run gcloud run image on the cli.
- if you need a db its much better to use the cloud sql assuming its postgresql. you want to create one beforehand in the same region.
- during deployment you can click connection tab and attach your db instance set the container port to your listening port. don't for get to like if it helps!
Solution 2:[2]
A downstream task is a task which will be defined via task specific rewards. This is usually done after doing unsupervised RL pretraining for a long time.
Self-Supervision is usually necessary for this Pre-Training,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Melvin |
| Solution 2 | tnfru |
