fluentd:
enabled: true
forwarder:
initContainers:
- name: fluentd-init
image: busybox
command: ['/bin/sh', '-c', 'until nc -z exam-fluentd-0.exam-fluentd-headless.exam.svc.cluster.local ${EXAM_FLUENTD_AGGREGATOR_SERVICE_PORT_TCP-24224}; do sleep 5; done;']
configMapFiles:
fluentd-inputs.conf: |
@type http
port 9880
@type tail
path /var/log/containers/exam-*.log
exclude_path /var/log/containers/*fluentd*.log
pos_file /opt/bitnami/fluentd/logs/buffers/fluentd-docker.pos
tag kubernetes.*
read_from_head true
@type json
time_key time
time_format %Y-%m-%dT%H:%M:%S.%NZ
@type kubernetes_metadata