To avoid resource limit errors in clusters, it is necessary to add Tanzu Kubernetes Grid VM sizing policies to organization virtual data centers. The Tanzu Kubernetes Grid VM sizing policies are automatically created in the VMware Cloud Director Container Service Extension server configuration process and appear as a selectable option when you add Tanzu Kubernetes Grid VM sizing policies to an organization virtual data center.

A VM sizing policy defines the compute resource allocation for virtual machines within an organization VDC. The compute resource allocation includes CPU and memory allocation, reservations, limits, and shares. By using VM sizing policies, you can restrict the compute resources consumption for all virtual machines within an organization VDC to predefined sizes. Tanzu Kubernetes Grid clusters have the following sizing policies:
Table 1. Tanzu Kubernetes Grid Cluster Sizing Policies
Sizing Policy Description Values
TKG small Small VM sizing policy for a Kubernetes cluster node 2 CPU, 4 GB memory
TKG medium Medium VM sizing policy for a Kubernetes cluster node 2 CPU, 8 GB memory
TKG large Large VM sizing policy for a Kubernetes cluster node 4 CPU, 16 GB memory
TKG extra-large Extra-large VM sizing policy for a Kubernetes cluster node 8 CPU, 32 GB memory

Procedure

  1. Log in to VMware Cloud Director and from the top navigation bar, select More > Kubernetes Container Clusters.
  2. Click CSE Management > Add VM Sizing Policies to Organization VDCs > Go to Organization VDCs.
  3. In VMware Cloud Director UI, select an organization VDC, and from the left panel, under Policies, select VM Sizing.
  4. Click Add.
  5. From the data grid, select the Tanzu Kubernetes Grid sizing policy you want to add to the organization, and click OK.
  6. Click Set as Default.
    Note:
    • To unpublish a VM sizing policy, select the sizing policy, and click Remove.
    • To change the default Tanzu Kubernetes Grid VM sizing policy to another, repeat Step 5 and 6.