Before you activate vSphere with Tanzu, create storage policies for the Supervisor and namespaces. The policies represent available datastores in the vSphere environment. They control the storage placement of such objects as control plane VMs, pod ephemeral disks, container images, and persistent storage volumes. When you use VMware Tanzu™ Kubernetes Grid™ Service, the storage policies also dictate how the Tanzu Kubernetes Cluster nodes are deployed.
Assign a New Tag to the vSAN Datastore for Developer Ready Infrastructure for VMware Cloud Foundation
To assign the vSAN datastore to a storage policy based on a vSphere tag, you first create a category, create a tag to that category, and apply that tag to the vSAN datastore.
Procedure
- Log in to the VI workload domain vCenter Server at https://<vi_workload_vcenter_server_fqdn>/ui with a user assigned the Administrator role.
-
From the vSphere Client menu, select Tags & Custom Attributes.
-
Create a new category to later add to your tag.
-
On the Tags and Custom Attributes page, under the Tags tab, select Categories, and click New.
-
In the Create category dialog box, enter a category name according to your value in the VMware Cloud Foundation Planning and Preparation Workbook, configure the following settings , and click Create.
Setting
Value
Tags Per Object
One tag
Associable Object Types
Datastore
-
-
Create a new tag for your new category.
-
On the Tags & Custom Attributes page, select Tags, and click New.
-
In the Create tag dialog box, enter a tag name according to your value in the VMware Cloud Foundation Planning and Preparation Workbook, select the category that you created in the previous step, and click Create.
-
-
Add the tag to the vSAN datastore.
-
From the vSphere Client menu, select Inventory.
-
In the storage inventory, expand your vCenter Server and your data center.
-
Right-click the vSAN Datastore and click
. -
In the Assign Tag dialog box, select the check box for the newly created tag, and click Assign.
-
Create a Storage Policy that Uses the New vSphere Tag for Developer Ready Infrastructure for VMware Cloud Foundation
After you have created the vSphere tag and applied it to the vSAN datastore, you can create a storage policy using that tag. You need to add
Procedure
The following procedure outlines the Storage Policy configuration steps required when configuring on a normal, non-streched vSphere cluster.
- Log in to the VI workload domain vCenter Server at https://<vi_workload_vcenter_server_fqdn>/ui with a user assigned the Administrator role.
-
From the vSphere Client menu, select Policies and Profiles.
-
In the navigation pane, select VM Storage Policies.
-
On the VM Storage Policies page, click Create.
-
On the Name and description page, configure the name and vCenter Server settings according to your values in the VMware Cloud Foundation Planning and Preparation Workbook and click Next.
-
On the Policy structure page, select the Enable tag based placement rules check box and click Next.
-
On the Tag based placement page, set the Usage option to Use storage tagged with, configure the Tag category and Tags settings according to your values in the VMware Cloud Foundation Planning and Preparation Workbook, and click Next.
-
On the Storage compatibility page, click Next.
-
On the Review and Finish page, click Finish.
Procedure for Stretched vSAN Clusters
- Log in to the VI workload domain vCenter Server at https://<vi_workload_vcenter_server_fqdn>/ui with a user assigned the Administrator role.
From the vSphere Client menu, select Policies and Profiles.
In the navigation pane, select VM Storage Policies.
On the VM Storage Policies page, click Create.
On the Name and description page, configure the name and vCenter Server settings according to your values in the VMware Cloud Foundation Planning and Preparation Workbook and click Next.
On the Policy structure page, select Enable rules for "vSAN storage and Enable tag based placement rules check boxs and click Next.
On the vSAN page, under Availability, set Site disaster tolerance to Site mirroring - stretched cluster and Failures to tolerate to 1 failure - RAID 1 (Mirroring)
On the vSAN page, under Advanced Policy Rules, enable Force Provisioning, and click Next.
On the Tag based placement page, set the Usage option to Use storage tagged with, configure the Tag category and Tags settings according to your values in the VMware Cloud Foundation Planning and Preparation Workbook, and click Next.
On the Storage compatibility page, click Next.
On the Review and Finish page, click Finish.
Create a Subscribed Content Library for Developer Ready Infrastructure for VMware Cloud Foundation 4.5.2 or Earlier
For VMware Cloud Foundation 4.5.2 or earlier, before you can deploy a Tanzu Kubernetes cluster, create a Subscribed Content Library to store virtual machine images that the VMware Tanzu™ Kubernetes Grid™ Service uses to create Tanzu Kubernetes Cluster nodes.
If you are using VMware Cloud Foundation 5.0 or later, you do not perform this procedure.
Procedure
- Log in to the VI workload domain vCenter Server at https://<vi_workload_vcenter_server_fqdn>/ui with a user assigned the Administrator role.
-
From the vSphere Client menu, select Content Libraries.
-
In the Content Libraries inventory, click Create.
-
On the Name and location page, configure the settings according to your values in the VMware Cloud Foundation Planning and Preparation Workbook and click Next.
-
On the Configure content library page, select Subscribed content library, configure the settings and click Next.
Setting
Value
Subscription URL
https://wp-content.vmware.com/v2/latest/lib.json
Enable Authentication
Deselected
Download Content
Immediately
-
In the Kubernetes - Unable to verify authenticity dialog box, click Yes to accept the SSL certificate thumbprint.
-
On the Apply security policy page, click Next.
-
On the Add Storage page, select your vSAN datastore, click Next
-
On the Ready to Complete page, review the settings and click Finish.