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.


  1. In a Web browser, log in to the Workload domain vCenter Server by using the vSphere Client.
    Setting Value
    User name administrator@vsphere.local
    Password vsphere_admin_password
  2. Click Menu > Tags & Custom Attributes.
  3. Create a new category to later add your new tag to.
    1. On the Tags and Custom Attributes page, under the Tags tab, select Categories and click New.
    2. In the Create category dialog box, enter the configuration, click Create, and close the dialog box.
      Setting Value
      Category Name vsphere-with-kubernetes-category
      Tags Per Object One tag
      Associable Object Types Datastore
  4. Create a new tag for your new category.
    1. On the Tags & Custom Attributes page, select Tags and click New.
    2. In the Create tag dialog box, enter the configuration and click Create.
      Setting Value
      Name vsphere-with-kubernetes-tag
      Category vsphere-with-kubernetes
  5. Add the tag to the vSAN Datastore.
    1. In the Storage inventory, expand sfo-w01-vc01.sfo.rainpole.local > sfo-w01-dc01.
    2. Right-click the sfo-w01-cl01-ds-vsan01 vSAN Datastore and click Tags & Custom Attributes > Assign Tag.
    3. In the Assign Tag dialog box, select the vsphere-with-kubernetes-tag check box and click Assign.