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.

You can create a Subscribed Content Library using the vSphere Client or using PowerShell.

Procedure

  1. To create a Subscribed Content Library using the vSphere Client:
    1. In a web browser, log in to the workload domain vCenter Server by using the vSphere Client (https://<vcenter_server_fqdn>/ui).
    2. Select Menu > Content Libraries.
    3. In the Content Libraries inventory, click +Create.
    4. On the Name and location page, configure the settings and click Next.

      Setting

      Value

      Name

      Kubernetes

      vCenter Server

      Select the workload domain vCenter Server.

    5. 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

    6. In the Kubernetes - Unable to verify authenticity dialog box, click Yes to accept the SSL certificate thumbprint.
    7. On the Add Storage page, select your vSAN datastore, click Next.
    8. On the Ready to Complete page, review the settings and click Finish.
  2. To create a Subscribed Content Library using PowerShell:
    1. Open a PowerShell Console, define variables for the inputs by entering the following commands:
      $sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io"
      $sddcManagerUsername = "[email protected]"
      $sddcManagerPassword = "VMw@re1!"
      $wldName = "sfo-w01"
      $contentLibraryUrl = "https://wp-content.vmware.com/v2/latest/lib.json"
      $contentLibraryName = "Kubernetes"
      $wldDatastoreName = "sfo-w01-cl01-ds-vsan01"
    2. Perform the configuration by entering the following commands:
      Add-ContentLibrary -Server $sddcManagerFqdn -User $sddcManagerUsername -Pass $sddcManagerPassword -Domain $wldName -ContentLibraryName $contentLibraryName -Datastore $wldDatastoreName -SubscriptionUrl $contentLibraryUrl