Kubernetes Visibility Agent runs a small Informer pod inside each cluster. The Informer watches resources as they change, sends those changes to your ServiceNow instance, and the agent’s back end updates the CMDB. Deployment needs a prepared instance, a credential secret in the cluster, and a Helm or YAML install per cluster. Tuning options follow the install steps.
How the Informer moves cluster data into the CMDB
The deployment creates a Kubernetes deployment resource that holds a pod called Informer. That pod uses a secret stored in Kubernetes to connect to your instance, collects data on the resources in the cluster, and sends it to the instance, where the agent’s back end updates the matching CMDB tables.
Full discovery is the periodic pass, and the schedule covered below sets how often it runs.
If the Informer cannot report, for example during a network fault, a full discovery that comes due in that window is recorded as Skipped. Check the Informer status fields once the connection is back. Pattern-based Kubernetes discovery works differently. It runs through a MID Server and needs a Kubernetes credential record created under Discovery > Credentials, unless you deploy a containerized MID Server inside the cluster. For the role a MID Server plays in that path, see the MID Server explainer.
Prepare the instance and the cluster
Install and activate two applications on the instance: Discovery and Service Mapping Patterns, and the Kubernetes Visibility Agent (KVA) application. On the cluster side, kubectl must be configured for the target cluster, and Helm must be available if you plan a Helm install. Oracle Kubernetes Engine deployments need a cluster created on Oracle Cloud Infrastructure first.
Choose or create an instance user with the mid_server role. The instance steps themselves need the admin role. Then create a namespace in the cluster with kubectl create namespace.
Store the instance credentials as a secret named k8s-informer-cred- followed by your instance name. It holds a .user key and a .password key, and the user must match the instance user you set up. For a proxy, add .proxyUser and .proxyPassword as well. A proxy user without a proxy password has a specific effect: the logs record an error and the Informer stops. For background on credential records, see the connection and credential alias explainer.
Clusters on Amazon EKS, Azure Kubernetes Service and Google Kubernetes Engine can keep those credentials in AWS Secrets Manager, Azure Key Vault or Google Cloud Secret Manager instead of a plain secret. OAuth 2.0 is also supported, with the instance issuing an access token that expires. Organizations with a custom root certificate authority can mount it into the Informer pod.
A few optional steps are worth taking before the install. You can copy the Informer image into your own registry, and a docker-registry secret named k8s-informer-repo-cred covers a repository that requires a login. Note the proxy host and port if outgoing traffic leaves through one. For more than 100 clusters, configure the system properties that help prevent loss of data from the Informers.
Install the Informer with Helm or a YAML file
The Helm install sets acceptEula to Y, the instance name without its domain, and the cluster name as it should appear in the CMDB. Add the image repository and tag for a private registry, and a proxy URL where traffic passes through one. Helm 4 is supported. An existing Helm 3 release moves to Helm 4 with an upgrade that uses the server-side apply flag.
| Setting | Helm parameter | YAML field |
|---|---|---|
| License acceptance | acceptEula=Y | ACCEPT_EULA set to “Y” |
| Instance name | instance.name | INSTANCE_NAME |
| Cluster name | clusterName | CLUSTER_NAME |
| OpenShift cluster | openShift=true | OPENSHIFT set to true |
The YAML route uses the current Kubernetes YAML package. Set the license value, fill in the namespace, instance and cluster placeholders, then run kubectl apply on the file. Hybrid service maps add settings for ingress addresses, node external IPs and service external IPs. Syft container image scanning is enabled with runSyftScanner set to true, and it is supported with the Helm method. Nodes with taints need a tolerations file, passed through the set-file option, so the Informer pod can be scheduled there.
Set how often discovery runs
Full discovery runs on a 24-hour interval by default. Set fullDiscoveryMin for Helm, or FULL_DISCOVERY_MIN in the YAML file, with the interval in minutes. A value of 2,880 gives a 48-hour cycle.
Continuous discovery keeps the instance updated between full discovery passes. To switch it off when periodic snapshots are all you need, set continuousDiscovery to false in Helm, or CONTINUOUS_DISCOVERY to ‘false’ in the YAML file. That reduces load on the instance for clusters that change often, and the full discovery cycle still refreshes the CMDB. For the scheduling model behind these intervals, see the discovery schedule explainer.
Read the Informer status fields
The Kubernetes Visibility Agent Informers table, sn_acc_visibility_kubernetes_informer, shows the state of each pod.
| Field | What it tells you |
|---|---|
| Status | Up, Down or Paused. An Informer shows Down when no message arrives for 15 minutes |
| Full discovery status | Empty, In Progress, Queued, Completed, Failed, Skipped or Timed out |
| Continuous Discovery Status | On or Off |
| Upgrade Status | Upgrade Pending, Upgrading, Desired image in use, or Upgrade using kubectl/Helm |
| Last full discovery | When the last full discovery completed |
| Informer version | The version running in the cluster |
Skipped means the Informer was Down when its full discovery came due. Timed out means the instance did not receive confirmation that the discovery finished in time. Check the running status before you assume the data is stale.
Retire inactive clusters automatically
Automatic retirement is off by default. It needs the KVA Plugin application at release 3.15.0, Informer version 2.6.0, and a user with the discovery_admin role. A cluster counts as inactive when its Informer is Down and the cluster CI has not been updated for the configured period. The system reads sys_updated_on to judge that, and checks during each full discovery cycle.
Set sn_acc_visibility.auto_retire_k8s_clusters to true in System Properties. If the property is missing, create it with the True/False type first.
| Property | Default | What it controls |
|---|---|---|
| sn_acc_visibility.auto_retire_period_days | 60 | Days of inactivity before retirement |
| sn_acc_visibility.auto_retire_install_status | 7 (Retired) | Install status written to the cluster CI and its associated CIs |
| sn_acc_visibility.node_deletion_set_server_install_status | empty | Install status for Linux server CIs linked to nodes; empty means no action |
The install status matters. The default value 7 keeps the cluster and its pods, namespaces, deployments and containers in place, marked Retired. The value 100 (Absent) lets a table cleanup job delete the cluster CI and all associated CIs, and that deletion cannot be undone. Choose Absent when a cluster is gone for good. For the CMDB records these steps act on, see the ServiceNow CMDB guides.
Upgrade Informers on your schedule
Upgrades do not need an uninstall. Run the Helm upgrade with your usual parameters, or apply the updated YAML file with kubectl.
If the Kubernetes team is stretched, the instance can drive the upgrade. A discovery_admin sets the Kubernetes Visibility Agent Image property to the target image in repository:tag format, then upgrades Informers from the agent’s home page. Informers qualify when they show Upgrade Pending and their running status is Up or Paused. The status moves to Upgrading and then to Desired image in use once the new pod connects. Informers showing Upgrade using kubectl/Helm need the Kubernetes administrator.
Relationships the agent creates
The agent links CIs as well as creating them. A cluster is linked to its nodes with Cluster of::Cluster, and it contains pods, services, ingresses and namespaces. Namespaces hold pods as members, and nodes are hosted on their servers. Workloads own their ReplicaSets, jobs or replication controllers. Gateway API and Traefik IngressRoute objects are watched by default, and Gateway API resources need Informer 2.7.x or later. Pod-to-node, external IP, ingress address and server IP relationships are switched on separately.
Scale and regulated environments
The main Informer image and the traffic-discovery image are FIPS-140 compliant, which matters in regulated markets. The optional Syft container image scanner is not FIPS-140 compliant. The performance tests estimate load, memory and CPU on the instance and the cluster, so run that estimate before a large rollout.
For how Kubernetes sits alongside other integrations, read the Kubernetes integration guide. For the rest of the discovery area, return to the ITOM discovery hub.
Frequently asked questions
What happens to the CMDB during a connection outage?
The Informer shows Down after 15 minutes without a message, and it returns to Up when messages resume. Check the Informer status fields for any full discovery marked Skipped.
How long does the first sync take on a large cluster?
Run a test install on one cluster first and watch the Informer status fields until it shows Up.
Can I keep periodic snapshots without continuous updates?
Yes. Set continuous discovery to off through the Helm parameter or the YAML variable. The full discovery cycle still refreshes the CMDB on its schedule.
Can the instance upgrade Informers without the Kubernetes team?
Partly. The instance can upgrade Informers that show Upgrade Pending with a running status of Up or Paused. Informers showing Upgrade using kubectl/Helm need the Kubernetes administrator.