Annotations not applied at pod level on logstash

I added some annotations as PodTemplate but those are not applied at pod level:

---
apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
  name: eck-logstash-beat
spec:
  count: 3
  version: 8.9.1
  [...]
  podTemplate:
    metadata:
      annotations:
        co.elastic.metrics/module: logstash
        co.elastic.metrics/enabled: true
        co.elastic.metrics/metricsets: node,node_stats
        co.elastic.metrics/hosts: '${data.host}:9600'
        co.elastic.metrics/period: 10s

Here the pod description:

# k describe pod eck-logstash-beat-ls-2
Name:             eck-logstash-beat-ls-2
Namespace:        eck-prod
Priority:         0
Service Account:  default
Node:             sole062/148.187.27.82
Start Time:       Wed, 30 Aug 2023 11:49:00 +0200
Labels:           common.k8s.elastic.co/type=logstash
                  controller-revision-hash=eck-logstash-beat-ls-76fc444498
                  logstash.k8s.elastic.co/name=eck-logstash-beat
                  logstash.k8s.elastic.co/version=8.9.1
                  statefulset.kubernetes.io/pod-name=eck-logstash-beat-ls-2
Annotations:      kubectl.kubernetes.io/restartedAt: 2023-08-30T11:48:55+02:00
                  logstash.k8s.elastic.co/config-hash: 3975290577
Status:           Running
IP:               10.36.6.239

What I'm doing wrong? i cant find documentation about logstash and annotations.

cheers

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.