fluent / fluentd-kubernetes-daemonset

Fluentd daemonset for Kubernetes and it Docker image
Apache License 2.0
1.26k stars 982 forks source link

Custom configuration file cannot be loaded #1416

Closed shijianliang closed 1 year ago

shijianliang commented 1 year ago

The configmap created with the above content is mounted on the pod /fluentd/etc/config.d, and it is not added when the container starts.

kind: ConfigMap apiVersion: v1 metadata: name: fluentd-es-config namespace: default data: myapp.conf: |-

  @type http
  port 9881
  bind 0.0.0.0
</source>

apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd labels: app: fluentd spec: selector: matchLabels: app: fluentd template: metadata: labels: app: fluentd containers:

root@fluentd-mp4g4:/fluentd/etc# cd config.d/ root@fluentd-mp4g4:/fluentd/etc/config.d# ls myapp.conf root@fluentd-mp4g4:/fluentd/etc/config.d# root@fluentd-mp4g4:/fluentd/etc/config.d#

However, after starting the pod, I checked the pod logs, and the printed fluent.conf content did not contain the contents of my myapp.conf file fluent/fluentd-kubernetes-daemonset:v1.15.3-debian-elasticsearch7-1.1

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

github-actions[bot] commented 1 year ago

This issue was automatically closed because of stale in 30 days