Override the Beats Pod Template

edit

You can customize the Filebeat and Metricbeat containers through the Pod template. Your configuration is merged with the values of the default Pod template that ECK uses.

apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
spec:
  nodeSets:
  - name: default
    monitoring:
      metrics:
        elasticsearchRef:
          name: monitoring
          namespace: observability
      logs:
        elasticsearchRef:
          name: monitoring
          namespace: observability
    podTemplate:
      spec:
        containers:
        - name: metricbeat
          env:
          - foo: bar
        - name: filebeat
          env:
          - foo: bar