title: Bind IP (GKE LoadBalancer IP) to Google Cloud Endpoint
body: <p>I have a simple question but struggling on it (For a while now, following a lot of Google Tutorials tho..). </p>
  
  <hr>
  
  <p><strong><em>Context:</em></strong></p>
  
  <blockquote>
    <p>I have a GKE (Google Kubernetes Engine) cluster which has workloads (Load Balancers, Pods, etc)</p>
    
    <p>I have a LoadBalancer for ServiceA which has an external IP XX.XXX.XXX.XX. This service is exposing port YYYY. I can then connect to my service using this IP:PORT combination.</p>
  </blockquote>
  
  <hr>
  
  <p><strong>Problem:</strong>
  How can I access this <code>XX.XXX.XXX.XX:YYYY</code> from an address such as <code>&lt;YOUR_NAMING&gt;.endpoints.&lt;PROJECT_ID&gt;.cloud.goog</code>?</p>
  
  <p>Possible example:</p>
  
  <p><em>We have a service running a gRPC server (:9000) and a REST API (:9001)</em></p>
  
  <ul>
  <li><code>service-a.endpoints.emixam23.cloud.goog</code>: (A request to this endpoint [HTTP] would forward it to <code>XX.XXX.XXX.XX:9001</code>, as well as a gRPC connection could be forwarded to <code>XX.XXX.XXX.XX:9000</code> depending on the configuration)</li>
  <li><code>service-a.endpoints.emixam23.cloud.goog:9001</code>: (A request to this endpoint [HTTP] would forward it to <code>XX.XXX.XXX.XX:9001</code> and only)</li>
  <li><code>service-a.endpoints.emixam23.cloud.goog:9000</code>: (A connection to this endpoint [gRPC] would be forwarded to <code>XX.XXX.XXX.XX:9000</code> and only)</li>
  </ul>
  
  <p>Thanks for any help!</p>