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.
- Deploy a cluster using the command
tkg create cluster –plan=dev tkg-cluster-03
- Create a vrops-cAdvisor.yaml file on this cluster and run it as a DaemonSet using the command
kubectl config use-context tkg-cluster-03-admin@tkg-cluster-03
- Switch to Temp directory using the command
root@tkg [~]tkg-cluster-03-admin@tkg-cluster-03:default)# cd /tmp
- Create a vrops-cAdvisor.yaml file using vi command
root@tkg [~]tkg-cluster-03-admin@tkg-cluster-03:default)# vi vrops-cAdvisor.yaml
- Run
kubectl apply -f vrops-cAdvisor.yaml
to run cAdvisor as a Daemonset. - Run
less .kube/config
to read the configuration file and note down the IP address and credentials to add to vRealize Operations Manager. - 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.