As a Tanzu Platform administrator, to ingest your VMware Cloud Foundation (VCF) inventory data into Tanzu Platform hub, you must add a VCF collector. Transferring your inventory data to Tanzu Platform helps you build, run, and manage your applications on VMware Cloud Foundation as well as enhancing the tracking and management of your VMware Cloud Foundation resources.
Tanzu Platform supports the latest VCF collector version.
VCF Collector | VMware Cloud Foundation Environment |
---|---|
1.1.1 |
After the installation, the VCF collector ingests inventory data from VMware Aria Operations into Tanzu Platform for the following VMware Cloud Foundation components:
To add a VCF collector, you install an agent on a Kubernetes cluster and configure it with VMware Aria Operations login details for the data collection.
Verify that the Kubernetes cluster on which you want to install the VCF collector meets the resource requirements.
Resource | Limit |
---|---|
CPU | 1 |
Memory | 1Gi |
kubectl
.Verify that you have VMware Aria Operations login details.
ReadOnly
roleVerify that your environment allows outbound traffic from the VCF collector to Tanzu Platform hub.
If you selected vRops:
If you selected vCenter:
Prepare the Kubernetes cluster on which you plan to install the collector.
If not already installed, install kapp-controller
by using the instructions at https://carvel.dev/kapp-controller/docs/v0.50.x/install/#installing-kapp-controller-cli-kctrl.
ImportantSkip this step if the Kubernetes cluster is managed by Tanzu Kubernetes Grid Service (TKG).
Run the following command to download the Carvel dependencies.
kubectl apply -f https://github.com/carvel-dev/kapp-controller/releases/latest/download/release.yml
Run the following command to create the vcf-remote-collector
namespace.
kubectl create namespace vcf-remote-collector
Run the following command to add the VCF collector package repository to the namespace.
For vROPS:
Replace <package-version>
with the latest supported version of the VCF collector for your environment.
kctrl package repo add -r remote-collector --url tanzu-platform.packages.broadcom.com/adie/vcf-remote-collector-repo.tanzu.vmware.com:<package-version> -n vcf-remote-collector
For vCenter:
Replace <repo-version>
with the latest supported version
kctrl package repo add -r remote-collector --url tanzu-platform.packages.broadcom.com/adie/vcf-remote-collector-repo.tanzu.vmware.com:<repo-version> -n vcf-remote-collector
Create a values.yaml
file by downloading or copying the lint code from the UI.
For vROPS:
env:
hostname: ********
onprem_username: ********
onprem_password: ********
lemans_token: ********
lemans_url: ********
org_id: ********
collector_id: ********
client_id: ********
client_secret: ********
For vCenter:
env:
hostname: ********
onprem_username: ********
onprem_password: ********
lemans_token: ********
lemans_url: ********
org_id: ********
collector_id: ********
collection_source: vCenter
Run the following command to get the version of the package (<package-version>
).
kctrl package available get -n vcf-remote-collector -p vcf-remote-collector.tanzu.vmware.com
Run the following command to install the VCF collector.
Replace <package-version>
with the version from the preceding step.
kctrl package install -i remote-collector -p vcf-remote-collector.tanzu.vmware.com -v <package-version> --values-file values.yaml -n vcf-remote-collector
After the installation completes, you can see the newly added VCF collector on the Setup & Configuration > VCF Collectors page in Tanzu Platform hub.
The VCF Collectors page shows a table list of all VCF collectors in your Tanzu Platform.
Property | Description |
---|---|
Name | The name of the collector. |
Type | The type of the collector. |
Status | The status of the collector: Ready - the collector is ingesting data into Tanzu Platform. Pending - the collector is trying to establish a connection with the environment. |
Version | The version of the vcf-remote-collector package. To upgrade it, see Edit, upgrade, or uninstall a VCF collector. |
Creation Time | The date and time when the collector was installed. |
Last Updated | The date and time when the collector ingested data for the last time. |
To edit or upgrade a VCF collector, you must uninstall it and reinstall a new one with a new configuration or version.
To uninstall a VCF collector:
>>
on the left side of the collector to delete, and click Detach.After you have set up VCF collectors, you can view information about your deployments to VMware Cloud Foundation directly in Tanzu Platform hub.
All of the Tanzu resources that you have deployed to VMware Cloud Foundation are listed. The map of objects shows the relationships between the different VMware Cloud Foundation services, for example networking, hosts, data centers, and so on. By selecting an object in the map, you see the configuration of that object.
Set kubectl
to the context of the Kubernetes cluster on which the VCF collector is running.
kubectl config use-context <cluster-context>
Obtain the ID of the VCF collector pod.
kubectl get pods -n vcf-remote-collector
Use the pod ID to obtain the VCF collector logs logs from the pod.
kubectl logs -f vcf-remote-collector-deployment-<pod-id> -n vcf-remote-collector