---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Include and exclude Labels and Annotations

# Define include and exclude lists of Labels and Annotations {#ariaid-title1}

* Release version: Yokohama
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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).

## Before you begin

Role required: none

## About this task

By default, that is if includeLabelsAndAnnotations and excludeLabelsAndAnnotations aren't set, the KVA discovers and includes all the available Kubernetes labels and annotations on the supported Kubernetes resource.  
Empty label and annotation values and values longer than 255 characters aren't sent to the CMDB. Duplicate key and value pairs for the same CI are also ignored.

* Use includeLabelsAndAnnotations when you want to restrict discovery to a specific list of label or annotation keys.
* Use excludeLabelsAndAnnotations when you want to prevent specific label or annotation keys from being sent to the CMDB.

{#cnov-config-annotations-allowed__ul_i3k_zgq_vjc}If both options are configured, excludeLabelsAndAnnotations takes precedence. If the same key appears in both lists, the key is excluded and is not sent to the CMDB.

## Procedure

Create an include or exclude list by using the following procedure.

| Task | Procedure |
| Create an include list | * When using a Helm chart, in the Helm install command, add a comma-separated include list of Labels and Annotations.For example: `--set IncludeLabelsAndAnnotations="label1,label2"` * When using the k8s_informer.yaml file, add values under the environment variable INCLUDE_LABELS_AND_ANNOTATIONS. {#cnov-config-annotations-allowed__ul_hcc_kjt_51c} |
| Create an exclude list | * When using a Helm chart, in the Helm install command, add a comma-separated exclude list of Labels and Annotations.For example: `--set ExcludeLabelsAndAnnotations="label1,label2"` * When using the k8s_informer.yaml file, add values under the environment variable EXCLUDE_LABELS_AND_ANNOTATIONS. {#cnov-config-annotations-allowed__ul_fsy_mjt_51c} |
|-|-|

{#cnov-config-annotations-allowed__choicetable_zc3_nht_51c}

