# Configuring Labels & Annotations for the connectware-agent Helm Chart

You can add Kubernetes labels and annotations to your agents. There are three pairs of values, that control where labels and annotations are added:

| Value                                   | Added to    |
| --------------------------------------- | ----------- |
| `annotations`, `labels`                 | StatefulSet |
| `podAnnotations`, `podLabels`           | Pod         |
| `service.annotations`, `service.labels` | Service     |

All values exist for `protocolMapperAgentDefaults` and in per-agent `protocolMapperAgents` entries. When you specify them in both contexts, both will be added to the Kubernetes objects.

**Example**

{% code lineNumbers="true" %}

```yaml
protocolMapperAgents:
  - name: bender-robots
    connectwareHost: connectware.cybus # adjust to actual hostname of Connectware
    annotations:
      tld.mycompans.costcenter: '12345'
    labels:
      mycompany.tld/environment: production
    podAnnotations:
      tld.mycompans.costcenter: '12345'
    podLabels:
      mycompany.tld/environment: production
    service:
      annotations:
        tld.mycompans.costcenter: '12345'
      labels:
        mycompany.tld/environment: production
```

{% endcode %}
