vSphere

Creating DKP clusters in a VMware vSphere environment

Overview of the Process

The overall process for configuring vSphere and DKP together includes the following steps:

  1. Configure vSphere to provide the needed elements, described in the Prerequisites.

  2. Create a bastion VM host if you are using an air-gapped environment.

  3. Create a base OS image.

  4. Create a CAPI VM image that uses the base OS image and adds the needed Kubernetes cluster components.

  5. Create a bootstrap cluster.

  6. Create a new DKP cluster on vSphere.

  7. Make the cluster self-managing.

  8. Explore the cluster and perform other functions as needed.

This diagram illustrates the image creation process:

vSphere Image Creation

The workflow on the left shows the creation of a base OS image in the vCenter vSphere client using inputs from Packer. The workflow on the right shows how DKP uses that same base OS image to create CAPI-enabled VM images for your cluster.

After creating the base image, the DKP image builder uses it to create a CAPI-enabled vSphere template that includes the Kubernetes objects for the cluster. You can use that resulting template with the DKP create cluster command to create the VM nodes in your cluster directly on a vCenter server. From that point, you can use DKP to provision and manage your cluster.

To get started, fulfill the prerequisites.