# The Gateway API on GKE: choosing a GatewayClass

> On GKE a GatewayClass is a Google Cloud load balancer: global or regional, external or internal, one cluster or many. Which class to use, what each Gateway creates, and the proxy-only subnet and certificate rules that catch people.

- Canonical: https://www.alpacamango.com/docs/gateway-api-on-gke
- Author: Glorb
- Published: 2026-11-23 · Updated: 2026-11-20
- Topics: Kubernetes, Google Cloud, Gateway API

**On GKE, choosing a GatewayClass is choosing a Google Cloud load balancer, and the class name spells out the choice: global or regional, external or internal, one cluster or many. For a public service in one cluster, use ****`gke-l7-global-external-managed`****. Pick a regional class when traffic or data must stay in one region, ****`gke-l7-rilb`**** when only your own network should reach it, and an ****`-mc`**** class only when one address must spread traffic across clusters.**

The single-cluster Gateway controller is built into GKE and costs nothing beyond the cluster; you pay for the load balancers it creates. What it creates is an ordinary Cloud Load Balancing setup in your project: forwarding rule, proxy, URL map, backend services and health checks. Read the class name as a description of that setup.

## The name is the decision

Each part of a class name is a separate question:

- **`global`**** or ****`regional`**: is the load balancer anycast from Google's edge in every region, or anchored in one region with its proxies there? Global suits users spread across continents; regional suits residency rules and keeps the moving parts in the region you chose.
- **`external`**** or ****`rilb`**: `rilb` is the regional internal Application Load Balancer, with an address only your VPC (and anything connected to it) can reach. It is the class for internal APIs and for services that other platforms in your network call.
- **No suffix or ****`-mc`**: a single-cluster Gateway sends traffic to Pods in its own cluster. A multi-cluster class runs in a fleet's config cluster and sends traffic to Services exported from several clusters, for failover between regions or for moving a workload from one cluster to another behind a fixed address.

The Gateway itself only names the class. Everything else in it is standard:

```yaml
kind: Gateway
metadata:
  name: shop
spec:
  gatewayClassName: gke-l7-global-external-managed
  listeners:
  - name: http
    protocol: HTTP
    port: 80
```

You will also see `gke-l7-gxlb`. It builds the classic global load balancer, and Google recommends the `global-external-managed` classes over it for their newer traffic management and security features. There is no reason to start on it today.

## What each Gateway costs you

Every Gateway is its own load balancer with its own IP address, as every Ingress was on GKE. All HTTPRoutes attached to one Gateway are compiled into a single URL map and share its quotas. Those two facts pull in opposite directions. One shared Gateway per environment keeps the number of load balancers and addresses down, and lets teams attach their own routes; but a very large shared Gateway gathers every team's rules into one URL map, and one team's change is a change to everyone's front door. Split Gateways along ownership or blast radius, not one per app.

## The setup that catches people

- **A proxy-only subnet for regional and internal classes.** The regional classes need a subnet with the purpose `REGIONAL_MANAGED_PROXY` in each region where you use them, because their Envoy proxies take addresses from it (the cross-region internal class needs one with `GLOBAL_MANAGED_PROXY`). Without it the Gateway never gets an address. The global external class does not use one.
- **Certificates differ by class.** A global external Gateway can take a Certificate Manager certificate map through the `networking.gke.io/certmap` annotation, which also gives you Google-managed certificates. Regional Gateways cannot use a certificate map: they take regional Certificate Manager certificates named in a listener option, or a Kubernetes Secret in `certificateRefs`, which is where [cert-manager](/docs/cert-manager-gateway-api-tls) fits.
- **Standard clusters may need the CRDs switched on.** On Autopilot the Gateway controller is always enabled. On a Standard cluster, check with `kubectl get gatewayclass`; if nothing is listed, enable the standard channel:

```bash
gcloud container clusters update CLUSTER --location=LOCATION --gateway-api=standard
```

The update can take a while (Google says up to 45 minutes), so do it before the change window, not during it.

Load balancer settings that the Gateway API has no field for live in GKE policies attached to the Gateway or to a Service: `GCPGatewayPolicy` for the frontend, `GCPBackendPolicy` for backend behaviour, `HealthCheckPolicy` for health checks. If you are coming from GKE Ingress, they replace FrontendConfig and BackendConfig.

## How to choose

- **A public website or API in one cluster:** `gke-l7-global-external-managed`.
- **Public, but traffic must terminate in one region:** `gke-l7-regional-external-managed`, plus the proxy-only subnet.
- **Reachable only from your VPC or on-premises network:** `gke-l7-rilb`.
- **One address in front of several clusters:** the matching `-mc` class, which needs a fleet and the multi-cluster Gateway controller. Get the single-cluster version working first.

Weighted backends work on these classes, so [canary releases](/docs/gateway-api-canary-releases) and blue/green behave as they do anywhere else. For the same choice on other clouds, see [the Gateway API on EKS](/docs/gateway-api-on-eks), where a Gateway can be a network rather than a front door, and [on AKS](/docs/gateway-api-on-aks).

## The diagram

One GKE cluster with two Gateways: a global external one for users on the internet and a regional internal one, with its proxy-only subnet, for callers inside the VPC. [Open it in archhy](https://archhy.com/d/tRHnhAkM3KMr?utm_source=alpacamango) and make a copy to adapt it.
