Google Distributed Cloud software only for VMware lets you create GKE clusters in a vSphere
environment on your own premises. Installing it is a multi-stage process: you
plan your clusters and network, prepare vSphere and Google Cloud resources,
and then create an admin workstation, an admin cluster, and user clusters.
Along the way, you choose the configuration options that meet your
organization's needs. You might need help from others, such as your network
administrator, to set up the vSphere infrastructure and to provide information
that you need to complete your configuration files.

## Before you begin

Before reading this page, ensure that you're familiar with the following:

- Kubernetes

  - [Kubernetes cluster](https://kubernetes.io/docs/concepts/overview/components)
  - [Cluster node](https://kubernetes.io/docs/concepts/architecture/nodes/)
  - [Google Kubernetes Engine](https://docs.cloud.google.com/kubernetes-engine/docs.md.txt)
- VMware

  - [vCenter Server](https://www.vmware.com/products/vcenter-server.html)
  - [vSphere](https://www.vmware.com/products/vsphere.html)
  - [data center](https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-1/vcenter-and-host-management.html)
  - [host](https://docs.vmware.com/en/VMware-vSphere/index.html)
  - [vSphere Cluster](https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-1/vsphere-resource-management.html)
  - [resource pool](https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-1/vsphere-resource-management.html)
  - [datastore](https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-1/vsphere-storage.html)

## Overview of installation steps

These are the primary steps involved in an installation of
Google Distributed Cloud software only for VMware:

1. Plan your installation.

2. Set up your vSphere environment.

3. Set up Cloud resources, including a Google Cloud project and service
   accounts.

4. Create an admin workstation. The admin workstation is a machine that has the
   tools you need to create clusters.

5. From your admin workstation, create an admin cluster. An admin cluster is a
   point of management for a set of user clusters that run your workloads.

6. Create one or more user clusters.

7. Deploy a workload on a user cluster.

## 1. Plan your installation

Google Distributed Cloud software only for VMware provides a way for you to create
[Google Kubernetes Engine (GKE)](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/kubernetes-engine-overview.md.txt)
clusters in a
[vSphere environment](https://docs.vmware.com/en/VMware-vSphere/index.html)
on your own premises.

Your workloads run on user clusters, and user clusters are managed by an
admin cluster. The following diagram shows an admin cluster that manages two
user clusters. User cluster 1 has eight nodes, and user cluster 2 has five
nodes. The user clusters shown in the diagram have Controlplane V2 enabled,
which means that the control plane for a user cluster runs in the user cluster
itself.
[![Diagram of an admin cluster and two user clusters](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/diagram-install-overview.svg)](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/diagram-install-overview.svg) Architecture with two user clusters (Click to enlarge)

The preceding diagram illustrates these points:

- A user cluster has *control-plane nodes* and *worker nodes*. The Kubernetes
  control plane runs on the control-plane nodes, and your workloads run on the
  worker nodes.

- The Kubernetes control-plane components for a cluster run on one or more
  nodes in the cluster itself.

- The admin workstation is a machine that is separate from the clusters.

### Plan your user clusters

Think ahead about how many user clusters you intend to create and how many nodes
you want each user cluster to have. For example, you might want to create
separate clusters for different departments in your organization. Certain
clusters might need to support heavy customer traffic, and other clusters might
need to support only light internal traffic.

Think about which of your workloads need to be highly available. Then decide
which of your user clusters need to have a high availability (HA) control plane
and which clusters would function adequately with a non-HA control plane. An HA
control plane requires three nodes, and a non-HA control plane requires only
one node.

### Plan your network and load balancing

Read about the
[load balancing options](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/setup-load-balance.md.txt)
for your installation and decide which kind of load balancer would work best
for you. Depending on which option you choose, you might have to set up your
load balancer before you create your clusters.

Read about the options for
[connecting to Google](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/concepts/connect-on-prem-gcp.md.txt),
and decide which kind of connection is best for you.

## 2. Set up your vSphere environment

Obtain the
[required vSphere licenses](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/vsphere-requirements.md.txt#license_requirements).

Set up a physical network that has a machine to run
[vCenter
Server](https://www.vmware.com/products/vcenter-server.html)
and several machines to run the
[ESXi hypervisor](https://www.vmware.com/products/esxi-and-esx.html).
Install vCenter Server on a physical machine, and install ESXi on several
physical machines. These physical machines are called *hosts*.

Set up physical
[storage](https://www.vmware.com/products/cloud-infrastructure/vsphere)
for your vSphere environment.

### Plan your IP addresses

Decide how you want your cluster nodes to get their IP addresses. The options
are:

- From a DHCP server that you provide.
- From a list of static IP addresses that you provide.

In either case, ensure that enough IP addresses are available for your cluster
nodes and virtual IP addresses (VIPs) that need to be configured on your load
balancer. For more information, see
[Plan your IP addresses](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/plan-ip-addresses.md.txt).

### Set up your vSphere object hierarchy

Use your instance of vCenter Server to create one or more
[vSphere data centers](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vcenterhost.doc/GUID-7FDFBDBE-F8AC-4D00-AE5E-3F14D7472FAF.html).
A vSphere data center is not the same as a physical building.
Sometimes a vSphere data center is called a *virtual data center* .
Use your instance of vCenter Server to add vSphere inventory objects to your
data centers. These inventory objects include
[cluster](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-487C09CE-8BE2-4B89-BA30-0E4F7E3C66F7.html),
[resource pool](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html),
[network](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-35B40B0B-0C13-43B2-BC85-18C9C91BE2D4.html),
[datastore](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-3CC7078E-9C30-402C-B2E1-2542BEE67E8F.html),
and
[folder](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vcenterhost.doc/GUID-031BDB12-D3B2-4E2D-80E6-604F304B4D0C.html).

> [!NOTE]
> **Note:** The word *cluster* has two meanings. In some contexts, it refers to a vSphere cluster, which is a vSphere inventory object. In other contexts, it refers to a GKE cluster.

#### Using separate vSphere clusters

Think about whether you want your GKE clusters to be in the same
vSphere cluster or in separate vSphere clusters. For example, you could have
your admin cluster in one vSphere cluster and your user clusters in a different
vSphere cluster. Or you could have each user cluster in its own vSphere
cluster.

The following diagram illustrates a vSphere setup you could use if you want
to put an admin cluster in one vSphere cluster and a user cluster in a different
vSphere cluster:
[![Diagram of a data center with two vSphere clusters](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/one-data-center-two-clusters.svg)](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/one-data-center-two-clusters.svg) vSphere setup with one data center and two vSphere clusters (Click to enlarge)

#### Using separate data centers

Another option is to have your GKE clusters in separate data
centers.

The following diagram illustrates a vSphere setup you could use if you want to
put an admin cluster in one data center and a user cluster in a different data
center:
[![Diagram of two data centers](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/two-data-centers.svg)](https://docs.cloud.google.com/static/kubernetes-engine/distributed-cloud/vmware/docs/images/two-data-centers.svg) vSphere setup with two data centers (Click to enlarge)

For more information about setting up your vSphere environment, see:

- [vSphere requirements](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/vsphere-requirements.md.txt)
- [CPU, RAM, and storage requirements](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/cpu-ram-storage.md.txt)
- [Proxy and firewall rules](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/firewall-rules.md.txt)

## 3. Set up Google Cloud resources

Before you create your admin workstation, you need to install the
Google Cloud CLI, create a Google Cloud project, and create service accounts.
For instructions, see:

- [Install the Google Cloud CLI](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/cloud-sdk.md.txt).
  The Google Cloud CLI is a set of tools to create and manage Google Cloud
  resources.

- [Create Google Cloud projects](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/multiple-gcp-projects.md.txt).
  A Google Cloud project provides a way of organizing your Google Cloud
  resources. You must have at least one Google Cloud project. When you create
  a user cluster, you must register the cluster to a
  [fleet](https://docs.cloud.google.com/anthos/fleet-management/docs),
  which requires that you specify a fleet host project.

- [Create service accounts](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/service-accounts.md.txt).
  Google Distributed Cloud software only for VMware uses Google Cloud
  [service accounts](https://docs.cloud.google.com/iam/docs/understanding-service-accounts)
  with specific permissions to download cluster components from Google Cloud,
  register clusters to a fleet, and perform other tasks.

## 4. Create an admin workstation

The admin workstation is a machine that you use to create and manage clusters.
The admin workstation can be a VM in your vSphere environment, or it can be a
machine that is separate from your vSphere environment.

For instructions on how to create an admin workstation, see
[Create an admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-admin-workstation.md.txt).

## 5. Create an admin cluster

The admin cluster manages one or more user clusters. You must create an admin
cluster before you create user clusters to run your workloads. For more
information, see
[Create an admin cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-admin-cluster.md.txt).

### Enroll the cluster in the GKE On-Prem API

Optionally, enroll your admin cluster in the GKE On-Prem API. Enrolling your
admin cluster in the GKE On-Prem API lets you use standard
tools---the Google Cloud console, Google Cloud CLI, or
[Terraform](https://www.terraform.io/)---to upgrade user
clusters that the admin cluster manages. The GKE On-Prem API stores cluster
state metadata in Google Cloud. This metadata lets the API manage the user
cluster lifecycle and doesn't include workload-specific data. The standard
tools use the GKE On-Prem API to manage the user cluster lifecycle, and
collectively are referred to as the *GKE On-Prem API clients* . Enrolling your
admin cluster also lets you run `gcloud` commands to
[get information about your admin cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/enroll-cluster.md.txt#get_cluster_information).

Google Distributed Cloud software only for VMware provides the following ways to enroll your admin
cluster in the GKE On-Prem API:

- Before the cluster is created: Include the `gkeOnPremAPI` section in the
  [admin cluster configuration file](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/admin-cluster-configuration-file-latest.md.txt#gkeOnPremAPI-section).

- After the cluster is created: Use the gcloud CLI to
  [enroll the cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/enroll-cluster.md.txt).

## 6. Create user clusters

After you create an admin cluster, you can create one or more user clusters.
You can create user clusters by using standard tools---the
console, gcloud CLI, or Terraform---or by running
`gkectl` on your admin workstation. For more information about using the
standard tools, see
[Choose a tool to manage cluster lifecycle](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/cluster-lifecycle-management-tools.md.txt).

- To create a user cluster using a standard tool, see
  *Create a user cluster* ([Console](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-user-cluster.md.txt#console) \| [gcloud-cli](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-user-cluster.md.txt#gcloud-cli) \| [Terraform](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-user-cluster.md.txt#terraform)).
  When you create a user cluster using a standard tool, the cluster is
  automatically enrolled in the GKE On-Prem API.

- To create a user cluster using `gkectl`, follow the instructions in
  *Create a user cluster* ([gkectl](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-user-cluster.md.txt#gkectl)).
  Optionally, you can enroll your user cluster in the GKE On-Prem API.
  Google Distributed Cloud software only for VMware provides the following ways to enroll your user
  cluster in the GKE On-Prem API if you use `gkectl` to create the cluster:

  - Before the cluster is created: Include the `gkeOnPremAPI` section in the
    [user cluster configuration file](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/user-cluster-configuration-file-latest.md.txt#gkeOnPremAPI-section).

  - After the cluster is created: Use the gcloud CLI to
    [enroll the cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/enroll-cluster.md.txt).

## 7. Deploy a workload on a user cluster

To learn how to create a Deployment, a Service, and an Ingress on a user
cluster, see:

- [Deploy an application](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/deploy-first-app.md.txt)

- [Create a Service and an Ingress](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-service-ingress.md.txt)

## What's next

Start the installation process by
[setting up your on-premises infrastructure](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/vsphere-requirements.md.txt).