In this example, you are preauthenticated to VMware Cloud on Amazon Web Services software defined data center. To monitor the Kubernetes cluster, perform the following steps.

  1. Deploy a cluster using the command tkg create cluster –plan=dev tkg-cluster-03

  2. Create a vrops-cAdvisor.yaml file on this cluster and run it as a DaemonSet using the commandkubectl config use-context tkg-cluster-03-admin@tkg-cluster-03

  3. Switch to Temp directory using the command root@tkg [~]tkg-cluster-03-admin@tkg-cluster-03:default)# cd /tmp

  4. Create a vrops-cAdvisor.yaml file using vi command root@tkg [~]tkg-cluster-03-admin@tkg-cluster-03:default)# vi vrops-cAdvisor.yaml

  5. Run kubectl apply -f vrops-cAdvisor.yaml to run cAdvisor as a Daemonset.

  6. Run less .kube/config to read the configuration file and note down the IP address and credentials to add to vRealize Operations Manager.

  7. Use one of the following authentication types to authenticate the guest cluster.

    • Basic Authentication - Uses HTTP basic authentication to authenticate API requests through authentication plugins.

    • Client Certification Authentication - Uses client certificates to authenticate API requests through authentication plugins.

    • Token Authentication - Uses bearer tokens to authenticate API requests through authentication plugins.

    Refer to Authentication Strategies for more details.

Note: Management Packs can work with read-only permission.