apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-config
  labels:
    k8s-app: filebeat
data:
  filebeat.yml: |-
    filebeat.config:
      inputs:
        # Mounted `filebeat-inputs` configmap:
        path: ${path.config}/inputs.d/*.yml
        # Reload inputs configs as they change:
        reload.enabled: true
        reload.period: 5s

    output.elasticsearch: 
      hosts: [{{ .Values.elasticsearch.address }}]

    http.enabled: true
    http.host: 0.0.0.0
    http.port: 5066