Creating Kubernetes Cluster on vCloud Director with Kublr

Prerequisites

The Kublr Demo/Installer must be installed. If you haven’t done that yet, please refer to the Installation Guide for the Kublr Demo/Installer.

System requirements for the cluster nodes

  1. x86 64-bit hardware
  2. At least 4Gb of RAM per master node and per work node
  3. At least 32Gb in sum for work nodes if you plan deploying Kublr Platform
  4. Supported OS on nodes: Ubuntu 16.04 LTS and above, RHEL 7.4 and above
  5. Root access to each node
  6. Nodes are connected in your network and Kublr-in-a-box configured IP is accessible from these nodes (ping)
  7. 100Mb stable internet connection

Overview

Steps below describe how to use Kublr to create VMware vSphere Kubernetes cluster. The following steps are described:

  1. Preparing virtual machine template in vCloud Director.
  2. Creating Kubernetes cluster on vCloud Director with Kublr.

Preparing Virtual Machine Template in vCloud Director

Consider the following when preparing a VM template:

  1. vAppTemplate must contain exactly one VM
  2. It must be one of supported linux distributives (Ubuntu/Debian/RHEL/CentOS and etc)
  3. open-vm-tools package must be installed
  4. Guest OS Customization must be enabled in VM properties

More details are available in vCloud Director documentation

Creating VMware vCloud Director Cluster in Kublr

To add a new cluster:

  1. On the left menu, click Clusters.

  2. Click Add Cluster. Add New Cluster The Select Installation Type dialog is displayed.

  3. In the Select Installation Type dialog, select Platform or Cluster.

  4. Click Continue Setup. Installation Type - Cluster The add cluster/platform dialog is displayed.

  5. Set Provider to “VMware vCloud Director”.

  6. From the Credentials list, select previously created VMware vCloud Director credentials.

    If credentials were not created previously, use Add New Credentials.

  7. Specify Cluster Name.

  8. Select Virtual Data Center.

  9. Select Kublr Agent.

  10. Select Kubernetes Version. vCloud-Add Cluster-General Settings

  11. Optionally, set Advanced Options.

  12. Scroll to the Network Configuration section.

  13. In the Network Type, select one of the available types:

    • Organization Network - for this type also select the appropriate network from the Organization Network list.
    • vApp Network (NAT)

    vCloud-Add Cluster-Network Configuration

  14. Use the INSTANCES tab.

  15. Use the Master Configuration section.

  16. Specify the parameters of the master node(s) of your cluster as described below.

  17. From the Masters list, select the number of master nodes.

  18. Set Master X: IP for each node.

  19. For 3 and 5 master nodes configuration, optionally specify Load Balancer Address.

  20. Select VM Template from the list (If you don’t have template, please create one as specified here.)

  21. Set:

    • Number of CPUs cores to use per VM.
    • Amount of RAM in GB to use per VM. vCloud-Add Cluster-Master Configuration
  22. Optionally, set Advanced Options.

  23. Scroll to the instance group section (default name group1).

  24. Specify the parameters of the work node(s) in your group as described below.

  25. Select IP Address Allocation Mode.

  26. Enter number of Nodes to be provisioned in the node group.

  27. Select VM Template from the list (If you don’t have template, please create one as specified here.)

  28. Set:

    • Number of CPUs cores to use per VM.
    • Amount of RAM in GB to use per VM.
  29. If necessary, set your own name for the instance group.

    Note For your working nodes, you can have as many intance groups as you need (clone or delete the current instance group, or add another one). If necessary, give specific name to each group.

  30. Optionally, set Advanced Options.

  31. Use the FEATURES tab to select and configure FEATURES that you want to include into your cluster. vCloud-Add Cluster-Features Configuration

  32. Click the REVIEW & CREATE step.

  33. Review your cluster parameters.

  34. At the bottom of the dialog, click CONFIRM AND INSTALL.

    A notification is displayed “Your cluster is being created. It might take a few minutes.”

  35. In the notification window, click OK.

    Your new cluster page is displayed on the Events tab showing the cluster creation progress.

Congratulations! You’ve just deployed a vCloud Director cluster in Kublr.

See Also

  • Search this documentation or for “vCloud director” or alike, or anything you meet in the vSphere cluster ADD/EDIT dialog to find more information about using Kublr with vSphere, like:
  • VMware vCloud Director Deployment Scheme
  • And others
  • Search support.kublr.com for “vCloud”.

Specific vCloud Director Scenarios:

  • Information will be provided soon.