Install Kubernetes Visibility Agent (KVA) Informer
You can install Kubernetes Visibility Agent Informer using either a Helm chart or the Kubernetes YAML file.
Before you begin
Role required: none
About this task
This procedure describes the standard Kubernetes Visibility Agent Informer installation process. Typically, you would use a Helm chart to perform the installation, but you can also configure and run the Kubernetes YAML file provided by ServiceNow.
Procedure
Install Kubernetes Visibility Agent Informer using either a Helm chart or the Kubernetes YAML file provided by ServiceNow.
Install Kubernetes Visibility Agent Informer using a Helm chart.
Edit the Helm install command.
In the following command, replace NAMESPACE, INSTANCE_NAME, and CLUSTER_NAME with the relevant values and replace the HELM_URL with the URL of the most recent version, provided in the Kubernetes Visibility Agent (formerly CNO for Visibility) Helm Chart and Kubernetes YAML file releases [KB1564347] article in the Now Support Knowledge Base.
helm install -n NAMESPACE --set acceptEula=Y --set instance.name=INSTANCE_NAME --set clusterName="CLUSTER_NAME" {--set image.repository=COMPANY_REPO --set image.tag=COMPANY_TAG} {--set proxyUrl=http://proxy_host:proxy_port} k8s-informer HELM_URLNote:
- The curly brackets indicate that the code segments they surround are optional. Use these code segments if the image must be pulled from your organization’s image repository or if outgoing traffic from your cluster flows through a proxy.
- By passing
--set acceptEula=Y, you agree to the End-User License Agreement. You can read the End-User License Agreement by extracting the EULA.pdf from informer-helm-<VERSION_NUMBER>.tgz. If the Informer is installed in OpenShift, add the openShift parameter to the command and set it to
true:helm install -n NAMESPACE --set acceptEula=Y --set instance.name=INSTANCE_NAME --set clusterName="CLUSTER_NAME" {--set image.repository=COMPANY_REPO --set image.tag=COMPANY_TAG} {--set proxyUrl=http://proxy_host:proxy_port} **\{--set openShift=true\}** k8s-informer HELM_URLNote: If the Informer is not installed in OpenShift, there is no need to set this parameter.
If you use the Hybrid service maps to map resources both inside and outside the Kubernetes cluster, set the following parameters:
--set bringIngressAddresses=true --set bringNodeExternalIPs=true --set discoverK8sServiceExternalIps=true --set openShift=true
In the command, configure additional settings as needed:
- Configure the memory limit of the Informer pod
- Change the full discovery frequency in Kubernetes Visibility Agent
- Deactivate continuous discovery in Kubernetes Visibility Agent
- Suppress frequent changes in the Kubernetes cluster to reduce the load on your instance. When this feature is active, the Informer does not report changes above the configured threshold rate back to the instance. For more information, see the Suppressing frequent changes in Kubernetes clusters reported by Kubernetes Visibility Agent (formerly CNO for visibility) [KB1580745] article in the Now Support Knowledge Base.
- Control the maximum number of full discoveries that informers can run on multiple clusters at the same time. For more information, see the Scheduling Full Discoveries in Kubernetes Visibility Agent (formerly CNO for Visibility) [KB1580250] article in the Now Support Knowledge Base.
- Enabling application service maps
- Run the command.
- Install Kubernetes Visibility Agent Informer using the Kubernetes YAML file.
- Download the Kubernetes YAML zip file provided in the Kubernetes Visibility Agent (formerly CNO for Visibility) Helm Chart and Kubernetes YAML file releases [KB1564347] article in the Now Support Knowledge Base.
- Extract the k8s_informer.yaml and EULA.pdf files from the zip file.
- Edit the k8s_informer.yaml file.
Change the value of ACCEPT_EULA to
"Y", as follows:- name: ACCEPT_EULA value: "Y"Note: By changing the value to
"Y", you agree to the End-User License Agreement included in the EULA.pdf file.Replace all occurrences of <NAMESPACE> with the namespace in which you want to install the Informer.
- Replace all occurrences of <INSTANCE_NAME> with the name of your instance, without the domain name.
- Replace <CLUSTER_NAME> with the name of your cluster as it appears in the CMDB.
- If the Informer is installed in OpenShift, change the value of the OPENSHIFT environment variable to
true. - Enabling application service maps 4. If you use the Hybrid service maps to map resources both inside and outside the Kubernetes cluster, set the following parameters:
- name: BRING_INGRESS_ADDRESSES value: "true" - name: BRING_NODE_EXTERNAL_IPS value: "true" - name: DISCOVER_K8S_SERVICE_EXTERNAL_IP value: "true" - name: OPENSHIFT value: "true"Run the command:
kubectl apply -f k8s_informer.yaml
Result
Kubernetes Visibility Agent is deployed on the Kubernetes cluster and begins to stream data into your instance.
What to do next
For information about Kubernetes Visibility Agent administration and troubleshooting, see the Administrating and Troubleshooting Kubernetes Visibility Agent (formerly CNO for Visibility) [KB1532614] article in the Now Support Knowledge Base.
- Configure the memory limit of the Informer pod
Set the memory limit of the Kubernetes Visibility Agent Informer pod. - Change the full discovery frequency in Kubernetes Visibility Agent
Customize how often you want the Kubernetes Visibility Agent Informer to run a full discovery. - Deactivate continuous discovery in Kubernetes Visibility Agent
Switch off continuous discovery by Kubernetes Visibility Agent if all you need is periodic snapshots of your cluster resources. If you have multiple clusters with frequent changes, deactivating continuous discovery reduces the load on your instance. - Display the Kubernetes cluster version in the CMDB
Make the Kubernetes Visibility Agent Informer populate the relevant field in the cmdb_ci_kubernetes_cluster CI to display the Kubernetes cluster version. - Create a cmdb_ci_linux_server CI for each Kubernetes node
Configure if you want the Kubernetes Visibility Agent Informer to create a cmdb_ci_linux_server CI for each Kubernetes node. - Retain inactive namespace CIs for audits
If required by your corporate standards, retain inactive namespace configuration items (CIs) for reference and auditing purposes with the option to delete them manually later. - Define include and exclude lists of Labels and Annotations
In Kubernetes Visibility Agent, define include and exclude lists of Labels and Annotations in Kubernetes resources that the Informer pulls into the Configuration Management Database (CMDB). - Add custom Labels and Annotations to Kubernetes resources
Add custom Labels and Annotations to all resources deployed by Kubernetes Visibility Agent in the Kubernetes cluster. - Upgrade Kubernetes Visibility Agent Informers remotely
Upgrade Kubernetes Visibility Agent Informer pods in Kubernetes clusters remotely from the ServiceNow Instance to avoid dependence on your Kubernetes admin. You can upgrade a single Informer or multiple Informers together. - Override Informer parameters from the Instance
Control Kubernetes Visibility Agent Informer execution parameters from the ServiceNow Instance to avoid dependence on your Kubernetes admin.
Parent Topic:Configuring Kubernetes Visibility Agent