Starting with VMware Cloud Director 10.3.1, you can create VMware Tanzu Kubernetes Grid clusters by using the Kubernetes Container Clusters plug-in.

For more information about the different Kubernetes runtime options for the cluster creation, see Using Kubernetes with VMware Cloud Director.

You can manage Kubernetes clusters also by using the Container Service Extension CLI. See the Container Service Extension documentation.

Prerequisites

  • You must publish the cse:nativeCluster Entitlement rights bundle to any organizations that you want to work with VMware Tanzu Kubernetes Grid clusters. After sharing the rights bundle, you must add the Full Control CSE:NATIVECLUSTER right to the roles you want to create, modify, and delete the VMware Tanzu Kubernetes Grid clusters. In addition, you can assign the administrator rights to users that you want to view all VMware Tanzu Kubernetes Grid clusters in an organization or users that you want to manage clusters across sites. For information about the rights and access levels for Runtime Defined Entities (RDEs), see Managing Defined Entities.

Procedure

  1. From the top navigation bar, select More > Kubernetes Container Clusters.
  2. Click New.
  3. Select the VMware Tanzu Kubernetes Grid runtime option, and click Next.
  4. Enter a name and select a Kubernetes Template from the list.
  5. (Optional) Enter an SSH public key.
  6. Click Next.
  7. Select the organization VDC to which you want to deploy a VMware Tanzu Kubernetes Grid cluster and click Next.
  8. Select the number of worker nodes, and optionally, select the sizing policies or CPU and memory limitations for the nodes.
  9. Click Next.
  10. (Optional) Select storage policies for the control plane and worker nodes.
  11. Click Next.
  12. (Optional) To limit the cluster communication only to the internal network, toggle off the Allow external traffic to be routed to this cluster.
    If you want to use load balancers and persistent volumes, the toggle must be turned on.
  13. Select a network for the Kubernetes cluster and click Next.
  14. (Optional) Specify a range of IP addresses for Kubernetes services and a range for Kubernetes pods, and click Next.

    Classless Inter-Domain Routing (CIDR) is a method for IP routing and IP address allocation.

    Option Description
    Pods CIDR Specifies a range of IP addresses to use for Kubernetes pods. The default value is 100.96.0.0/11. The pods subnet size must be equal to or larger than /24. You can enter one IP range.
    Services CIDR Specifies a range of IP addresses to use for Kubernetes services. The default value is 100.64.0.0/13. You can enter one IP range.
  15. Review the cluster settings and click Finish.

What to do next

  • Resize the Kubernetes cluster if you want to change the number of worker nodes.
  • Download the kubeconfig file. The kubectl command-line tool uses kubeconfig files to obtain information about clusters, users, namespaces, and authentication mechanisms.
  • Delete a Kubernetes cluster.