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.
Before you begin
Role required: none
Procedure
-
Do one of the following:
-
When using a Helm chart, in the Helm install command, add the custom attributes to the values.yaml file.
Use the format shown in this example:
--set commonLabels.mylabel1=value1 --set commonLabels.mylabel2=value2 --set commonAnnotations.myannotation1=value3. -
When using the k8s_informer.yaml file, add custom Labels and Annotations manually to the relevant resources in the file. Note:
Label and Annotation names must be alphanumeric and contain no spaces or special characters. For limitations on Label values, see the Kubernetes documentation.
-
Parent Topic:Install Kubernetes Visibility Agent (KVA) Informer
---
title: Add custom Labels and Annotations to Kubernetes resources
description: Add custom Labels and Annotations to all resources deployed by Kubernetes Visibility Agent in the Kubernetes cluster.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/it-operations-management/discovery/cnov-config-add-custom-labels.html
release: brazil
product: Discovery
classification: discovery
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
keywords: [Agent Client Collector, Kubernetes, Visibility, labels, annotations, custom, Cloud Native Operations for Visibility, CNO for Visibility]
breadcrumb: [Install Kubernetes Visibility Agent \(KVA\) Informer, Configure, Kubernetes discovery using Kubernetes Visibility Agent, Discovery for containerized resources, Discovery, ITOM Visibility, IT Operations Management]
---
# 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.
## Before you begin
Role required: none
## Procedure
1. Do one of the following:
- When using a Helm chart, in the Helm install command, add the custom attributes to the values.yaml file.
Use the format shown in this example:
`--set commonLabels.mylabel1=value1 --set commonLabels.mylabel2=value2 --set commonAnnotations.myannotation1=value3`.
- When using the k8s\_informer.yaml file, add custom Labels and Annotations manually to the relevant resources in the file.
**Note:**
Label and Annotation names must be alphanumeric and contain no spaces or special characters. For limitations on Label values, see the [Kubernetes documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set).
**Parent Topic:**[Install Kubernetes Visibility Agent \(KVA\) Informer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/discovery/cnov-deploy-install.md)
| title | Add custom Labels and Annotations to Kubernetes resources |
| description | Add custom Labels and Annotations to all resources deployed by Kubernetes Visibility Agent in the Kubernetes cluster. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/it-operations-management/discovery/cnov-config-add-custom-labels.html |
| release | brazil |
| product | Discovery |
| classification | discovery |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| keywords | Agent Client CollectorKubernetesVisibilitylabelsannotationscustomCloud Native Operations for VisibilityCNO for Visibility |
| breadcrumb | Install Kubernetes Visibility Agent \(KVA\) InformerConfigureKubernetes discovery using Kubernetes Visibility AgentDiscovery for containerized resourcesDiscoveryITOM VisibilityIT Operations Management |