Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connecting to gcp pubsub from pcf app deployed on-prem

Hello,

 
I have a spring boot app deployed to PCF.  The service connects to gcp pub/sub and publishes message to pub/sub topic. After deploying the service, while accessing the service, getting and error below.
"com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: ioException"
 
The issue was fixed after whitelisting the pubsub ip address in PCF  Application Security Group section and restarting the app.
 
Can someone please help why we need to whitelist the ips in pcf to access gcp pub/sub.
If required, what is the guarantee that the gcp pub/sub ip addresses don't change in future?
0 3 714
3 REPLIES 3