<p>Do you know what is the annotation that we can use it on GKE to make a LoadBalancer service internal?. For example Azure (and AWS) supports the following annotation (shown in the YAML code snippet) to make a LoadBalancer service internal. I couldn’t find equivalent of it on GKE. For example naturally one may expect <strong>gcp-load-balancer-internal</strong> as the equivalent annotation on GKE; unfortunately it is not. Here is the Azure and AWS documentation for it, I am looking equivalent of it on GKE.</p>
<ul>
<li><a href="https://learn.microsoft.com/en-us/azure/aks/internal-lb" rel="nofollow noreferrer">Azure: internal LoadBalancer</a></li>
<li><a href="https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/annotations/" rel="nofollow noreferrer">AWS: annotations</a></li>
</ul>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-internal: &quot;true&quot;
    service.beta.kubernetes.io/azure-load-balancer-internal: &quot;true&quot;
</code></pre>

Satyan
<p>There are 2 annotations:</p>
<p>For GKE versions 1.17 and later, use the annotation:</p>
<pre><code>networking.gke.io/load-balancer-type: &quot;Internal&quot;
</code></pre>
<p>For earlier versions, use the annotation:</p>
<pre><code>cloud.google.com/load-balancer-type: &quot;Internal&quot;
</code></pre>
<p>Plus, I’m sharing with you some GCP’s helpful official documentation in the following URLs <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing" rel="nofollow noreferrer">Using an internal TCP/UDP load balancer</a> and <a href="https://cloud.google.com/load-balancing/docs/l7-internal/setting-up-l7-internal?hl=en#configure-a-network" rel="nofollow noreferrer">Setting up Internal HTTP(S) Load Balancing </a>.</p>
