<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.6 (unsupported)</button>

- [Latest](https://docs.cloud.google.com/anthos/clusters/docs/bare-metal/latest/concepts/network-reqs)
- [Version 1.16](https://docs.cloud.google.com/anthos/clusters/docs/bare-metal/1.16/concepts/network-reqs.md.txt)
- [Earlier versions (unsupported)](https://docs.cloud.google.com/anthos/clusters/docs/bare-metal/1.6/getting-support.md.txt#version-support)

<br />

## Network requirements

### External network requirements

Google Distributed Cloud requires an internet connection for operational purposes.
Google Distributed Cloud retrieves cluster components from [Container Registry](https://docs.cloud.google.com/container-registry/docs) and the cluster is
registered with [Connect](https://docs.cloud.google.com/anthos/multicluster-management/connect/overview).

You can connect to Google using the public internet (with HTTPS), through a
Virtual Private Network (VPN), or through a [Dedicated Interconnect](https://docs.cloud.google.com/network-connectivity/docs/interconnect/concepts/dedicated-overview.md.txt).

### Internal network requirements

Google Distributed Cloud can work with L2 or L3 connectivity between cluster nodes and
requires load balancer nodes be in the same L2 domain. The load balancer nodes
can be the control plane nodes or a dedicated set of nodes. See [Choosing and
configuring load balancers](https://docs.cloud.google.com/anthos/clusters/docs/bare-metal/1.6/installing/load-balance) for
configuration information.

The L2 network requirement applies whether you run the load balancer on the
control plane node pool or in a dedicated set of nodes.

The requirements for load balancer machines are:

- All load balancers for a given cluster are in the same L2 domain.
- All VIPs must be in the load balancer machine subnet and routable to the gateway of the subnet.
- Users are responsible to allow ingress load balancer traffic.

## Single user cluster deployment with high availability

The following diagram illustrates a number of key networking concepts for
Google Distributed Cloud in one possible network configuration.

![Google Distributed Cloud typical network configuration](https://docs.cloud.google.com/static/anthos/clusters/docs/bare-metal/1.6/images/sc-cp-lb-GA.svg)

- The control plane nodes run load balancers, and they are all on the same L2 network, while other connections, including worker nodes, only require L3 connectivity.
- Configuration files define IP addresses for worker node pools, as well as virtual IP addresses for Services, for ingress and for control plane (Kubernetes API) access.
- A connection to Google Cloud is also required.

## Port usage

This section shows how UDP and TCP ports are used on cluster and load balancer
nodes.

### Master nodes

| Protocol | Direction | Port range | Purpose | Used by |
|---|---|---|---|---|
| UDP | Inbound | 6081 | GENEVE Encapsulation | Self |
| TCP | Inbound | 22 | Provisioning and updates of admin cluster nodes | Admin workstation |
| TCP | Inbound | 443 | Cluster management | Admin cluster nodes |
| TCP | Inbound | 6443 | Kubernetes API server | All |
| TCP | Inbound | 6444 | Control plane HA | All |
| TCP | Inbound | 2379 - 2380 | etcd server client API | kube-apiserver, etcd |
| TCP | Inbound | 10250 | kubelet API | Self, Control plane |
| TCP | Inbound | 10251 | kube-scheduler | Self |
| TCP | Inbound | 10252 | kube-controller-manager | Self |
| TCP | Both | 4240 | CNI health check | All |

### Worker nodes

| Protocol | Direction | Port range | Purpose | Used by |
|---|---|---|---|---|
| TCP | Inbound | 22 | Provisioning and updates of user cluster nodes | Admin cluster nodes |
| UDP | Inbound | 6081 | GENEVE Encapsulation | Self |
| TCP | Inbound | 10250 | kubelet API | Self, Control plane |
| TCP | Inbound | 30000 - 32767 | NodePort Services | Self |
| TCP | Both | 4240 | CNI health check | All |

### Load balancer nodes

| Protocol | Direction | Port range | Purpose | Used by |
|---|---|---|---|---|
| UDP | Inbound | 6081 | GENEVE Encapsulation | Self |
| TCP | Inbound | 6444 | Kubernetes API server | All |
| TCP | Both | 4240 | CNI health check | All |
| TCP | Inbound | 7946 | Metal LB health check | LB nodes |
| UDP | Inbound | 7946 | Metal LB health check | LB nodes |