Configure the Kubernetes adapter only when PKS is not used to deploy the K8s Clusters.
- Ensure that you have installed vRealize Operations for Cloud or vRealize Operations Manager 8.1 or later.
- Verify that you have installed vRealize Operations Management Pack for Kubernetes.
- Ensure that you have a Kubernetes cluster deployed by Tanzu Kubernetes Grid.
- Verify that the Kubernetes Clusters available in the PKS Environment have the cAdvior DaemonSet configured on port 31194.
- From the main menu of vRealize Operations Manager, click Administration, and then in the left pane, click Solutions.
- From the Solutions list, select VMware vRealize Operations Management Pack for Container Monitoring.
- Click the Configure icon to edit an object.
- Enter the display name of the adapter.
- Enter the http URL of the Kubernetes primary node in the Master URL text box.
- Select either Kubelet or DaemonSet as the cAdvisor Service. You can select a cAdvisor service running inside the Kubelet or the one deployed externally as a DaemonSet.
Note: By default, some Kubernetes deployments might have the cAdvisor service disabled on Kubelet. In such a situation, the cAdvisor service must be enabled on Kubelet or a standalone cAdvisor service must be deployed as a DaemonSet.
- Enter the port number if cAdvisor is running as a DaemonSet.
- Enter the Credential details of the Master URL.
- Click the Add New icon.
- Select the authentication to connect to the Kubernetes API Server. vRealize Operations Management Pack for Container Monitoring currently supports basic, client certificate, and token authentication.
Table 1. Authentication Types Authentication Description Basic Auth Uses HTTP basic authentication to authenticate API requests through authentication plugins. Client Certification Auth Uses client certificates to authenticate API requests through authentication plugins. Token Auth Uses bearer tokens to authenticate API requests through authentication plugins.For more information, see Kubernetes Authentication.
- Under Advanced Settings
- Select the collector that is used to manage the adapter processes.
- If the Kubernetes cluster is running on vCenter Server and the same server is monitored by the vCenter Adapter instance, you can view a link from the Kubernetes node to the vSphere Virtual Machine. To view the link, enter the IP address of the vCenter Server instance.
- If you want to monitor Java Process, then enable this option.
- If you want to delete the non-existent objects for a defined period, then select the time frame from the drop-down menu.
Note: The object deletion schedule is applicable to the Container Monitoring management pack only, and is over and above the global setting object deletion policy.
- Click Save Settings.
- Click Close.