Create an admin cluster (quickstart)

This document shows how to create an admin cluster for GKE on VMware.

The instructions here are part of a quickstart. For full instructions on how to create an admin cluster, see Creating an admin cluster.

Before you begin

Create an Admin workstation (quickstart)

Prepare to create a Seesaw load balancer (quickstart)

Get an SSH connection to your admin workstation

Get an SSH connection to your admin workstation.

Recall that gkeadm activated your component access service account on the admin workstation.

Do all the remaining steps in this topic on your admin workstation in the home directory.

Specify static IPs for your admin cluster

To specify the static IP addresses that you want to use for your admin cluster, create an IP block file named admin-cluster-ipblock.yaml. For this quickstart, you need to specify five IP addresses to be used by the admin cluster.

Here is an example of an IP block file with five hosts:

  - netmask:
    - ip:
      hostname: admin-host1
    - ip:
      hostname: admin-host2
    - ip:
      hostname: admin-host3
    - ip:
      hostname: admin-host4
    - ip:
      hostname: admin-host5

The ips field is an array of IP addresses and hostnames. These are the IP addresses and hostnames that GKE on VMware will assign to your admin cluster nodes.

In the IP block file, you also specify a subnet mask and a default gateway for the admin cluster nodes.

Credentials configuration file

When you used gkeadm to create your admin workstation, you filled in a credentials configuration file named credential.yaml. This file holds the username and password for your vCenter server.

Admin cluster configuration file

When gkeadm created your admin workstation, it generated a configuration file named admin-cluster.yaml. This configuration file is for creating your admin cluster.

Fill in your admin cluster configuration file

Several fields in your admin cluster configuration file are already filled in with default values, generated values, or values that you provided when you created your admin workstation. You can leave those fields unchanged.

Fill in the following fields. For instructions on how to fill in the fields, see Admin cluster configuration file.

  dataDisk: "Fill in"
     - "Fill in"
    - "Fill in"
    - "Fill in"
    type: Fill in. Set to "static".
    ipBlockFilePath: "Fill in"
    controlPlaneVIP: "Fill in"
    ipBlockFilePath: "Fill in"
    vrid: Fill in
    masterIP: "Fill in"

Validate the admin cluster configuration file

Verify that the your admin cluster configuration file is valid and can be used for cluster creation:

gkectl check-config --config admin-cluster.yaml

Prepare your vSphere environment

Run gkectl prepare to initialize your vSphere environment:

gkectl prepare --config admin-cluster.yaml --skip-validation-all

Create a load balancer for your admin cluster

Create and configure the VM for your Seesaw load balancer:

gkectl create loadbalancer --config admin-cluster.yaml

Create the admin cluster

Create the admin cluster:

gkectl create admin --config admin-cluster.yaml

What's next

Create a user cluster (quickstart)