Skip to content

Use cases

k8s-hybrid-neg-controller enables endpoints of workloads running in Kubernetes clusters on-prem and on other clouds to be added to backend services of Cloud Load Balancing and the Cloud Service Mesh managed xDS control plane (the Traffic Director implementation), with traffic routed directly to the Pod endpoints.

Cloud Load Balancing use cases:

Cloud Service Mesh use cases:

  • Traffic routing by header/metadata matching, or percentage-based traffic splitting, across workloads deployed to multiple regions or multiple Kubernetes clusters on Google Cloud and on-prem or on other clouds.

  • Locality-aware load balancing across workloads deployed to multiple regions or multiple Kubernetes clusters on Google Cloud and on-prem or on other clouds.

  • Traffic routing, traffic splitting, and locality-aware load balancing across workloads deployed to multiple Kubernetes clusters running outside Google Cloud. The workloads can span on-prem and other clouds, multiple regions, and multiple Kubernetes clusters.

Global external load balancing

The global external Application Load Balancer and global external proxy Network Load Balancer enable internet traffic to reach your backends that span multiple regions. The Application Load Balancer enables Layer-7 load balancing, while the proxy Network Load Balancer enables Layer-4 load balancing.

Using k8s-hybrid-neg-controller, you can load balance across backends on both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Global external Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources for global external Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud

To provision the Google Cloud resources used in this architecture, follow the steps in the document Set up a global external Application Load Balancer with hybrid connectivity.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster, by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Regional external load balancing

The regional external Application Load Balancer and regional external proxy Network Load Balancer enable internet traffic to reach your backends in one region. The Application Load Balancer enables Layer-7 load balancing, while the proxy Network Load Balancer enables Layer-4 load balancing.

Using k8s-hybrid-neg-controller, you can load balance across backends on both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Regional external Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources for regional external Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud

To provision the Google Cloud resources used in this architecture, follow the steps in the document Set up a regional external Application Load Balancer with hybrid connectivity.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster, by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Cross-region internal load balancing

The cross-region internal Application Load Balancer and cross-region internal proxy Network Load Balancer enable internet traffic to reach your backends in one region. The Application Load Balancer enables Layer-7 load balancing, while the proxy Network Load Balancer enables Layer-4 load balancing.

Using k8s-hybrid-neg-controller, you can load balance across backends on both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Cross-region internal Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources for cross-region internal Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud

To provision the Google Cloud resources used in this architecture, follow the steps in the document Set up a cross-region internal Application Load Balancer with hybrid connectivity.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster, by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Regional internal load balancing

The regional internal Application Load Balancer and regional internal proxy Network Load Balancer enable internet traffic to reach your backends in one region. The Application Load Balancer enables Layer-7 load balancing, while the proxy Network Load Balancer enables Layer-4 load balancing.

Using k8s-hybrid-neg-controller, you can load balance across backends on both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Regional internal Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources for regional internal Application Load Balancer or proxy Network Load Balancer used to load balance across Google Cloud and on-prem or other cloud

To provision the Google Cloud resources used in this architecture, follow the steps in the document Set up a regional internal Application Load Balancer with hybrid connectivity.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster, by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Cloud Service Mesh traffic routing

The managed Traffic Director xDS control plane enables traffic routing based on request header/metadata matching and percentage-based traffic splitting to workloads deployed across multiple regions.

Using k8s-hybrid-neg-controller, you can configure traffic routing and traffic splitting across workloads deployed to both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Cloud Service Mesh with traffic routing across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources used to configure traffic routing and traffic splitting to workloads deployed across Google Cloud and on-prem or other clouds, with the managed Traffic Director control plane

For further details on the Network Services API resources (Mesh, Gateway, {HTTP,GRPC,TCP,TLS}Route) referenced in the diagram above, see the document Cloud Service Mesh service routing APIs overview.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster, by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Cloud Service Mesh locality-aware load balancing

The managed Traffic Director xDS control plane enables client-side locality-aware load balancing of traffic to workloads deployed across multiple regions.

Using k8s-hybrid-neg-controller, you can configure locality-aware load balancing across workloads deployed to both GKE clusters on Google Cloud and Kubernetes clusters running on-prem or on other clouds. See the diagram below for an architecture overview.

Cloud Service Mesh with locality-aware load balancing across Google Cloud and on-prem or other cloud, via Cloud Interconnect / Cloud VPN

The diagram below shows the Google Cloud resources you provision for this architecture.

Google Cloud resources used to configure locality-aware load balancing to workloads deployed across Google Cloud and on-prem or other clouds, with the managed Traffic Director control plane

For further details on the Network Services API resources (Mesh, Gateway, {HTTP,GRPC,TCP,TLS}Route) referenced in the diagram above, see the document Cloud Service Mesh service routing APIs overview.

For deploying k8s-hybrid-neg-controller to a GKE cluster running on Google Cloud, follow the steps in Deploy the hybrid NEG controller to GKE.

For the environment outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes cluster by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.

Cloud Service Mesh off Google Cloud

The managed Traffic Director xDS control plane enables traffic routing, traffic splitting, and client-side load balancing of traffic between workloads that are deployed outside Google Cloud.

Using k8s-hybrid-neg-controller, you can configure traffic routing, traffic splitting, and client-side load balancing across workloads deployed to Kubernetes clusters running outside Google Cloud. These Kubernetes clusters can run on-prem and on other clouds. The workloads require access to the Traffic Director xDS control plane endpoint (trafficdirector.googleapis.com:443), either via Private Google Access (recommended), or via the public internet. See the diagram below for an architecture overview.

Cloud Service Mesh with traffic routing and load balancing across two regions on-prem or on another cloud

For the environments outside Google Cloud, deploy k8s-hybrid-neg-controller to your Kubernetes clusters by following the steps in Deploy k8s-hybrid-neg-controller outside Google Cloud.