Similar case to: https://www.googlecloudcommunity.com/gc/Apigee/Apigee-X-runtime-DNS/td-p/161752
Running on Apigee X.
Have a private on prem service that I'm trying to hit from Apigee. Let's say it's https://user-api.example.com/api/v1. Proxy is configured to send a request to that URL.
Currently I have:
Ran the peering command in the above linked community post at the top of this page (omitting service so it uses the default servicenetworking.googleapis.com in the command)
gcloud services peered-dns-domains create example-com --network=my-network --dns-suffix=example.com.
Getting 503s in Apigee trying to hit the on-prem service using the url to that service that needs to be resolved by on prem DNS servers. Note, that I can send a curl request from a vm in my vpc to the on prem url and get a 400 (as expected). Wondering if there is some config that I'm missing for the request to work from Apigee given that it's working if I curl from a vm inside client VPC.
Solved! Go to Solution.
Use the GCP console to navigate to your VPC network details (the one that is already peered with Apigee), then switch to the 'Private Service Connection' tab and take a look at the "Allocated IP Ranges for Services'. You should be able to see at least one range allocated to 'servicenetworking-googleapis-com'. Update your router advertised routes using this range.