Connect to Google

There are various ways that you can connect Anthos clusters on bare metal clusters, running in your on-premises data center, to the Google Cloud network. Possibilities include:

Regular internet connection

In certain scenarios, you can use the internet as the connection between Google and your on-premises data center. For example:

  • Your Anthos clusters on bare metal deployment is self-contained on your premises, and your on-premises components seldom communicate with the Google Cloud network. You use the connection primarily for cluster management. The speed, reliability, and security of the connection are not critical.

  • Your on-premises cluster is self-contained, except for access to a Google service like Cloud SQL. Traffic between your on-premises cluster and the Google service uses public IP addresses. You configure firewall rules to provide security.

HA VPN

With HA VPN and Cloud Router, traffic between Google and your on-premises data center traverses the public internet, but is encrypted. on-premises components can communicate with cloud components using private IP addresses. Cloud Router dynamically exchanges routes between your Google Cloud networks and your on-premises network. Dynamic routing is especially beneficial as your network expands and changes, because it ensures that the correct routing state is propagated to your on-premises data center.

One way to set up an HA VPN between Google Cloud and an on-premises Anthos cluster is to configure Network Connectivity Gateway in the cluster. Network Connectivity Gateway is available for Preview.

Partner Interconnect

Partner Interconnect provides connectivity between your on-premises network and the Google Cloud network through a supported service provider. Traffic between Google and your on-premises data center does not traverse the public internet. On-premises components can communicate with cloud components using private IP addresses. Your connection to Google is fast, secure, and reliable.

Dedicated Interconnect

Dedicated Interconnect provides a direct physical connection between your on-premises network and the Google Cloud network. This type of connection can be cost-effective if you need high bandwidth. Traffic between Google and your on-premises data center does not traverse the public internet. On-premises components can communicate with cloud components using private IP addresses. Your connection to Google is secure and reliable, and is even faster than a connection using Partner Interconnect.

Impact of a temporary disconnection

For information on what happens if you're disconnected, see Impact of temporary disconnection from Google Cloud.

Choosing a connection type

For additional guidance on choosing a connection type, see:

Network monitoring

Regardless of how you establish a fundamental connection to Google, you can benefit from insights provided by network logging and monitoring. For more information, see Logging and monitoring for Anthos clusters on bare metal.

Enhancing your fundamental connection

After your fundamental connection is in place, you can add features that enhance access, security, and visibility. For example, you could enable Private Google Access, VPC Service Controls, or Connect.

The remainder of the guidance in this topic assumes you're using one of the following options for your fundamental connection to Google:

Private Google Access

Private Google Access enables VMs that have only private IP addresses to reach the IP addresses of Google APIs and services. This scenario includes the case where your Anthos clusters on bare metal cluster nodes have only private IP addresses. You enable Private Google Access at the subnet level.

With Private Google Access, requests from your on-premises data center to Google services traverse your Cloud Interconnect or Cloud VPN connection instead of traversing the public internet.

Use Private Google Access in these situations:

  • Your on-premises VMs without public IP addresses must connect to Google services like BigQuery, Pub/Sub, or Container Registry.

  • You want to connect to Google services without traversing the public internet.

For a list of services that support Google Private Access from on-premises VMs, see Supported services. For information about using Private Google Access from on-premises VMs, see Configuring Private Google Access for on-premises hosts.

Services that don't require Google Private Access

Sometimes, you don't need Private Google Access to reach a service from a VM that has only a private IP address. For example:

  • You create a Cloud SQL instance that has both a public IP address and a private IP address. Then your on-premises components can access the Cloud SQL instance using its private IP address. You don't need Private Google Access in this case, because you don't need to reach the public IP address of a Google service. This approach works only if Cloud Router advertises the private IP address of the Cloud SQL instance to your on-premises network.

  • You have an Anthos clusters on bare metal cluster in Google Cloud, and the cluster nodes have private IP addresses. Your on-premises components can access a NodePort Service or an internal load balancer Service in the cloud Anthos clusters on bare metal cluster.

VPC Service Controls

If you want added protection against exfiltration, you can use VPC Service Controls. With VPC Service Controls, you can configure security perimeters around the resources of your Google-managed services and control the movement of data across the perimeter boundary.

Connect

Connect enables you to view and manage your on-premises user clusters from Google Cloud console.

What's next