Configure the Kubernetes adapter only when TKGI is not used to deploy the Kubernetes Clusters.

Prerequisites

  • Ensure you have installed vRealize Operations 8.1 or later or have access to vRealize Operations Cloud.
  • Verify that you have installed vRealize Operations Management Pack for Kubernetes.
  • Verify that the Kubernetes Clusters available in the TKGI Environment have the cAdvisor DaemonSet configured on port 31194.

Procedure

  1. From the main menu of vRealize Operations Manager, click Administration, and then in the left pane, click Solutions.
  2. From the Solutions list, select vRealize Operations Management Pack for Kubernetes.
  3. Click the Configure icon to edit an object.
  4. Enter the display name of the adapter.
  5. Enter description for the adapter.
  6. Enter the http URL of the Kubernetes primary node in the Master URL text box.
  7. Select the Collector Service as per your requirement.
    The available options are Prometheus Server, Kubelet, and Daemonset.
    1. If you select 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.
    2. If you select Prometheus as the collection strategy service, you have to provide the server URL details in the credentials section.
    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.
  8. Enter the port number if cAdvisor is running as a DaemonSet.
    Note: If you select Prometheus as the collector service you do not have to enter the cAdvisor Port (Daemoset) port details.
  9. Enter the Credential details of the Master URL.
    1. Click the Add New icon.
    2. Select the authentication to connect to the Kubernetes API Server. vRealize Operations Management Pack for Kubernetes 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.
      Note: If you select Prometheus Server as the collector service, in the Manage Credential section you have to provide details for Prometheus Server, Prometheus endpoint username, and Prometheus endpoint password.
      For more information, see Kubernetes Authentication.
  10. Under Advanced Settings
    1. Select the collector that is used to manage the adapter processes.
    2. 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.
    3. If you want to monitor Java Process, then enable this option.
    4. 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 Kubernetes Monitoring management pack only, and is over and above the global setting object deletion policy.
    5. If you want to do cAdvisor Install Check, then enable this option.
    6. Enable this option to include all the Prometheus metric labels (label name & value) under the Prometheus metric group.
      Note: When enabling and disabling the field, delete and reconfigure the adapter instance to remove the history metric data from vRealize Operations Manager, if needed. (optional)
    7. Enter the Prometheus labels that must be excluded from the Prometheus metric group.

      The label names must be entered as a list of comma-separated, case-sensitive values. For example, If there are ten labels being displayed and only four of them are required, then the remaining six label names must be added in this field.

    8. Click Save Settings.
  11. Click Close.