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
- To create a Subscribed Content Library using the vSphere Client:
- In a web browser, log in to the workload domain vCenter Server by using the vSphere Client (https://<vcenter_server_fqdn>/ui).
- Select .
- In the Content Libraries inventory, click +Create.
- On the Name and location page, configure the settings and click Next.
Setting
Value
Name
Kubernetes
vCenter Server
Select the workload domain vCenter Server.
- 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 Add Storage page, select your vSAN datastore, click Next.
- On the Ready to Complete page, review the settings and click Finish.
- To create a Subscribed Content Library using PowerShell:
- 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"
- Perform the configuration by entering the following commands:
Add-ContentLibrary -Server $sddcManagerFqdn -User $sddcManagerUsername -Pass $sddcManagerPassword -Domain $wldName -ContentLibraryName $contentLibraryName -Datastore $wldDatastoreName -SubscriptionUrl $contentLibraryUrl
- Open a PowerShell Console, define variables for the inputs by entering the following commands: